How do I stop an endless redirect loop?

I have a blog that has a redirect loop and I cannot understand htaccess too well right now (late and it needs to be done AM), so I hope for a quick fix. The site dumps 301 from xxxxx.org to xxxxx.org/index.php and goes back to the beginning. The htaccess file looks like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

redirect 301 /index.html http://www.lawyersclearinghouse.org/index.php

      

The site was recently listed on Google as malicious due to iFrame injection, so please don't feel the need to visit it (cleaned up but not limited yet)

+1


a source to share


2 answers


Your rewrite conditions are combined with logical OR, so they will apply in all cases. If the file is a simple file, it will not be a directory and vice versa.



Your rule is also odd. Are you trying to match all cases? in this case it should be assumed. * (any character string), not. (any character)

+4


a source


Your site seems to be working for me. Make sure index.php exists anyway.



0


a source







All Articles