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:

    https://gkdvoracek.cz/wp-login.php
    https://www.gkdvoracek.cz/wp-login.php

    I’ll explain what’s happening, when you try to login from https://gkdvoracek.cz/wp-login.php, it sends a request to https://www.gkdvoracek.cz/wp-login.php. 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} ^gkdvoracek.cz [NC]
    RewriteRule ^(.*)$ http://www.gkdvoracek.cz/$1 [L,R=301]

    If you go directly to https://www.gkdvoracek.cz/wp-login.php and try to login – it should work.

    Dave

    Thread Starter exageo

    (@flogsblog)

    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.