I've been trying to hide index.php, following the guidance of numerous and helpful posts, in the URL but have been unsuccessful. My setup is as follows:
Webapp runs fine unless I want to hide the script name. When using the following .htaccess config, I get a 404 error (URL not found):
Some other posts discussed the need to set some of the apache configs in /etc/apache2/default as follows:
Doing this actually results in a 403 error (forbidden access).
Anyone have any suggestions?
- VirtualBox Ubuntu Server VM (Host is Windows 7)
- Using a shared folder on host
- webapp is a sibling to framework folder
- mod_rewrite is enabled
Webapp runs fine unless I want to hide the script name. When using the following .htaccess config, I get a 404 error (URL not found):
Options +FollowSymLinks IndexIgnore */* RewriteEngine on RewriteBase promotingme # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php
Some other posts discussed the need to set some of the apache configs in /etc/apache2/default as follows:
<Directory /var/www/> Options All AllowOverride All Order allow,deny Allow from all </Directory>
Doing this actually results in a 403 error (forbidden access).
Anyone have any suggestions?