.htacess seem to have stopped working

Avatar
  • Answered
I have been getting many failed login attempts: 4 failed login attempts (1 lockout(s)) from IP: 195.154.251.81 My WordPress Admin login has been locked down and working with .htaccess since started the account, with the following cide: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$ RewriteRule ^(.*)$ - [R=403,L] Obviously, with my ip not the 123.123.123.123... this stopped working on my website. Is something wrong with my account? Thanks.
Avatar
johnpaulb-imhs1
Hello kenard, Thank you for your contacting us about an issue with .htaccess rules. CMS's such as WordPress, and their plugins also manipulate/modify the .htaccess file. There may be a rule in there conflicting with the one you have in place. As a test, try renaming your .htaccess file (such as .htaccess.old), then creating a new file named .htaccess and adding your rule to it. You can always name your original .htaccess file back at any time. If you have any further questions, feel free to post them below. Thank you, John-Paul