Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Cannot register or log on using /wp-login.php. “Denied”

Discussion in 'Misc WordPress Requests' started by DJ Allyn, Feb 3, 2018.

  1. DJ Allyn

    Guest

    Reply To: Cannot register or log on using /wp-login.php. “Denied”, by DJ Allyn

    I found the problem. I opened up an .htaccess file and found the following code in there:

    ErrorDocument 403 “Denied”
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{HTTP_REFERER} !^http://(.*)?domain\.com [NC]
    RewriteCond %{REQUEST_URI} ^/wp-login\.php(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/wp-admin$
    RewriteRule ^(.*)$ – [F]
    </IfModule>

    The last time that file was written to was on 3/14/2016. So apparently, this problem has been going on for a while.

    I have no idea of:

    a) who created the .htaccess file in the first place. When I set all of this up ten years ago, I had no need for an .htaccess file. I haven’t worked on the site since 2012, so perhaps someone else felt the need…

    b) who added this particular code or for what reason.

    It’s kind of a strange thing to use on a blog where 500+ people are registered.

    Oh well, I deleted the .htaccess file altogether and it is all working happily now.

    Thanks for your help.

    Reply To: Cannot register or log on using /wp-login.php. “Denied”
     
    #1

Share This Page

Monarch Social Sharing Plugin