liamoco Posted October 17, 2010 Share Posted October 17, 2010 The subject explains. I have started something but dont know if it is correct or how to finish it. RewriteCond %{SCRIPT_FILENAME} !^(.*)index\.php Link to comment https://forums.phpfreaks.com/topic/216111-redirect-if-script_filename-is-not-equal-to-indexphp/ Share on other sites More sharing options...
liamoco Posted October 17, 2010 Author Share Posted October 17, 2010 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.... Link to comment https://forums.phpfreaks.com/topic/216111-redirect-if-script_filename-is-not-equal-to-indexphp/#findComment-1123125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.