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 Quote 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.... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.