I am struggling to work out why URL rewriting is not functioning properly.
Code:
# .htaccess file for Smartest installations that use Apache
# Auto generated by Smartest on Dec 11th, 2011 at 08:04 am. No further automated modifications will take place on this file.
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag session.auto_start off
php_value session.name "SMARTEST"
php_value display_errors 0
Options +FollowSymLinks +ExecCGI
# allow for files with any dot suffix or none at all to be processed by PHP
AddType application/x-httpd-php *
# Activate mod_rewrite
RewriteEngine On
# This line is important if you are running other apps in sub directories
RewriteBase //
# Forward anything that doesn't correspond to a real file to Smartest
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
# People trying to browse around the resources dir should be forwarded to Smartest
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} ^/Resources/
RewriteRule ^(.*)$ index.php [QSA,L]
I changed the RewriteBase // to RewriteBase /cms/ as suggested but that did not help one bit.
the /cms folder is off the site root, the /Public folder is off the /cms folder. Basically anyone attempting to access /cms/Resources should be pushed to the /cms/smartest folder.
Its not happening and the help I have had with this so far has not resolved the problem.
The above .htaccess is generated as part of the install. I didn't write it...