Forum Moderators: phranque
I've got a rewrite rule that will redirect www.mysite.com/index.php to www.mysite.com - works fine.
The problem I'm running into now is that I have a forum installed on my site where I need to login to the administration section, and it requires going to admin/index.php - and now the server redirects it to admin/ and so I get thrown into a loop where I can't login.
I've determined the code that is causing this is:
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.mysite.com/$1 [R=301,L] How can I make this play nice?
Thanks for any help
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index\.php(#[^?\ ]*)?(\?[^\ ]*)?\ HTTP/
RewriteRule ^index\.php$ http://www.example.com/$1 [R=301,L]
Jim