Hi Dimitris, yes I already did so, but the issue persists. I don’t think it’s related to plugin or theme conflicts.
I think the issue might be related to subdirectory install. My WordPress is installed in a subdirectory, but uses the same domain URL as the root. You can try to reproduce the issue using these example settings:
WordPress Address (URL): https://www.domain.com/subdirectory
Site Address (URL): https://www.domain.com
Root .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Subdirectory .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdirectory/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I fixed the problem by changing the setting to this:
WordPress Address (URL): https://www.domain.com
Site Address (URL): https://www.domain.com
Root .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteCond %{REQUEST_URI} !^/subdirectory/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subdirectory/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
RewriteRule ^(/)?$ subdirectory/index.php [L]
</IfModule>
# END WordPress
Subdirectory .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’m not sure if this is a permanent fix but I hope so.
It seems like Defender mask login won’t work well if WordPress Address is different from the Site Address, can you confirm this?
However, there’s another site of mine with the same problem, which I fixed by fresh install of Defender, could this be related to caching, or transients?