I've put htaccess in a loop by accident


I have a wordpress .htaccess with permalinks, so my htaccess starts with:

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

Then I tried to add:

Order Allow,Deny Allow from Deny from all

then I have a list of denied ip addresses and some other stuff and in the access log I called wp-login in a loop until it was terminated. Any clues?


I’d put security stuff at the top of the .htaccess to kick 'em quicker :smiley:

<FilesMatch wp-login.php>
order deny,allow
deny from all
allow from [your_ip]


Thanks, that fixed it!