Hello,
Ah ah – I had the exact same issue yesterday on navireargo.org .
.htaccess of wp-admin was such: (and I couldn’t access admin pages)
<FilesMatch ".*\.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
When I replaced it with :
# BEGIN WordPress
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]
# END WordPress
taken from https://fr.ww.wp.xz.cn/support/article/htaccess/ , it worked again.
Is this a bug from WPS Hide Login?
Please advise. I’m running WordPress 6.1.1
Thank you!
Nicolas
Hello,
Thanks for using WPS Hide Login.
Have you got any “.php” or other in your secret slug ? Maybe you .htaccess deny access to files and, then, returns a 403 when ou try to reach your secret login page.
For wp-admin, it’s the way the plugin works. Actually, it redirects to 404 when non-loggedin users try to reach /wp-admin.
Hello Maxime,
Thank you for your reply. In my case, no, there is no .php or other extension in the slug. Just a simple word different from wp-login.
All the best,
Nicolas
Hello ,
I still have issues. In the page https://navireargo.org/en/support-navire-argo/ , when someone is finished filling up the support form, Form maker is supposed to redirect to the anchor: https://navireargo.org/en/support-navire-argo/#thank-you
Instead I get a ‘critical error’ message.
I cannot edit the main .htaccess of the website, it is constantly overwritten.
Could this be linked to your plug-in?
Would be so kind to let me know what would be the correct content and permission of the main .htaccess and the ones in wp-admin , wp-content and wp-includes so I can try tracking down this error?
Thank you!
Nicolas
Hello,
WPS Hide Login doesn’t add anything in .htaccess. It only add a line in options table in your database.
However, .htaccess can create issues with the plugin. You can check it modifying your .htaccess keeping this lines below only (as you did before) :
# BEGIN WordPress
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]
# END WordPress
If the issues still appear, the problem must come from another plugin.
Hello Maxime
Thank you for taking the time to look into this.
I changed the .htaccess in wp-admin , wp-content and wp-includes to the standard code that you advise . I cannot change the “main” .htaccess, the one under httpdocs, as soon as I reload a page it gets overwritten with:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
In the meantime I still have the error. But as you point out, most probably it doesn”t have to do with your plug-in.
Best, Nicolas
Hello,
Unfortunately, if you can’t modify .htaccess, we won’t be able to check the issue.