Support » Plugin: Wordfence Security - Firewall & Malware Scan » 2FA causes an login error

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @flogsblog,

    I noticed that your site is not redirecting all of its requests to one domain.

    I can freely visit your site at both:

    I’ll explain what’s happening, when you try to login from, it sends a request to The request is then rejected because the origin is different.

    I recommend redirecting all requests that are not www, to your www domain. You can do this by editing .htaccess and adding the following lines:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^ [NC]
    RewriteRule ^(.*)$$1 [L,R=301]

    If you go directly to and try to login – it should work.


    Thread Starter exageo


    Yes, thanks fot the tip. It was really some sort of conflict in .htaccess.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2FA causes an login error’ is closed to new replies.