Jump to content

redirect if SCRIPT_FILENAME is not equal to "index.php"


liamoco

Recommended Posts

Ive managed to develop a little more...

 

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !^(.*)index\.php
RewriteRule (.*) http://localhost/?n=home [R=301,L]

 

but the page is not showing because....

 

This web page has a redirect loop.

 

The web page at http://localhost/?n=home has resulted in too many redirects....

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.