I have a bit of a strange request. I'm trying to redirect every instance of the regular domain to index.php (reverse of index.php to root). I have this:
- Code: Select all
rewriteEngine On
rewriteCond %{REQUEST_FILENAME} -f [OR]
rewriteCond %{REQUEST_FILENAME} -d
rewriteRule ^(.+) - [PT,L]
rewriteRule ^(.*) index.php
But it's not doing what I need it to do. Instead of http://www.domain.com it should go to http://www.domain.com/index.php.
Any ideas?