Log in / log out error 404 with Hide Backend
-
Hi !
I’m using the starter theme “Bones” and your security plugin.
I’ve activated the “Hide Backend” plugin with the theme compatibility checked. When I go to “https://mysite.com/gestion”, I have the login form. When I log in, I’m redirected to the homepage of my site, not to the wp-admin. If I manually type the admin url, it’s ok I’m in the admin. There, if I log out from the admin bar, I’m redirected to a 404 not found page, but I’m logged out…
Why am I not redirected to the admin on login and why am I not redirected to the homepage on logout ?
Here is my .htacces code :
# BEGIN iThemes Security # BEGIN Hide Backend # Rules to hide the dashboard RewriteRule ^/gestion/?$ /wp-login.php [QSA,L] # END Hide Backend # BEGIN Tweaks # Rules to disable directory browsing Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On # Rules to help reduce spam RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} ^(.*)wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !^(.*)patrobdb.be.* RewriteCond %{HTTP_REFERER} !^https://jetpack\.wordpress\.com/jetpack-comment/ [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule ^(.*)$ - [F] </IfModule> # END Tweaks # END iThemes Security # NO VARNISH Header add Cache-Control "max-age=1" # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Thanks in advance,
Cédric
- The topic ‘Log in / log out error 404 with Hide Backend’ is closed to new replies.