I was originally trying to remove index.php from ExpressionEngine, but now I’m simplifying things by trying to redirect or rewrite a test page. I have tried all the possible examples from their documents page and other searches on the net. I swear the .htaccess I copied from my CodeIgniter install was working the other day and then it just stopped the next morning. The file is located in \htdocs\Expression.
The \Xampp\xampp\apache\conf \htpd.conf does have
“LoadModule rewrite_module modules/mod_rewrite.so” uncommented.
For my test I have localhost/sandbox/firstpage.php and I want it to redirect towards localhost/sandbox/firstpage.html.
If I type in any php file from my sandbox folder it gets redirected.
So doesn’t this mean that mod_rewrite is working properly?
This is my .htaccess file
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
#RewriteRule /firstpage.php /firstpage.html[L]
RewriteRule ^(.*)\\.php$ /sandbox/firstpage.html [R=301,L]