Forum Moderators: phranque
I have a site which is rewriting all urls to the main index.php file.
However, I DON'T want it to rewrite the main url - I want that to go to index.html (where we have a holding page).
The .htaccess rule for the rewrite is simple:
RewriteEngine on
RewriteCond $1 !^(index\.php¦images¦robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
But how do I stop it from rewriting the root www.example.com ?
Thanks in advance for any help :-)
Unless excluded, *all* requests must be handled properly by the script.
I'm not familiar with CodeIgniter, but you'd also do well to test thoroughly to make sure that if it cannot find a requested resource, it returns a proper 404-Not Found header, and NOT a 200-OK (no matter what the page content it returns might be).
Jim