Plugin Author
gioni
(@gioni)
Hi!
First of all, Custom login URL is highly recommend for each WordPress powered site. Secondly, it works with any permalink structure you have made.
Please try to use different values for Custom login URL and make sure that all of them generate the same error. Don’t use special symbols.
If you use some caching plugin like W3 Total Cache or WP Super Cache you need to exclude your Custom login URL from caching by these plugins.
I’m not using any caching plugins. I disabled any plugin that was specific to the site in question (that is, not used on one of my other 5 sites that work fine). I set the Custom URL value to “mungo”. When I go to http://www.mywebsite.com/mungo I get:
Not Found
The requested URL /mungo was not found on this server.
Plugin Author
gioni
(@gioni)
Let’s check some diagnostic info. Go to the Tool tab. Scroll down and click the button Show diagnostic information. Scroll down to white text area and make sure that you see the following string (among others)
[REQUEST_URI] => /wp-admin/options-general.php?page=cerber-settings&tab=tools
Got it:
[REQUEST_URI] => /wp-admin/options-general.php?page=cerber-settings&tab=tools
Any other diagnostic info I can give you?
Plugin Author
gioni
(@gioni)
Do you have the same set of plugins on all the sites? What exact page do you see when you try to open Custom login URL?
No, the plugins vary a bit from site to site but for this test I turned every plugin off except Akismet. As for the “exact page” when I try to open the Custom URL, it is as I described above. I set the Custom URL value to “mungo”. When I go to http://www.trentartglass.com/mungo I get a “404 Not Found” page that says:
Not Found
The requested URL /mungo was not found on this server.
Apache/2.4.10 (Debian) Server at http://www.trentartglass.com Port 80
Plugin Author
gioni
(@gioni)
Could you do the following.
1. Set custom login URL.
2. Try to log out via top right menu in Dashboard.
3. Check the URL in the address bar in the browser.
4. Tell me was logout successful or not and does URL of logout page contain your custom login URL?
I set the Custom URL to “mungo” again. After logging out the URL in the browser looks reasonable:
http://www.trentartglass.com/mungo/?action=logout&_wpnonce=8ce3cdd822
but I still get the same “404 Not Found” page for that URL. It also seems that perhaps the logout was not really successful? I can use the back button from that 404 page and I go back into the WordPress dashboard where I can change the Custom URL back to null. This is probably good — at least I’m not locked out! (Although I do know how to recover from being locked out by manually removing the plugin files…)
Plugin Author
gioni
(@gioni)
Could you inspect .htaccess file in the root folder of WordPress installation?
It should contain the following lines.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wpbox/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpbox/index.php [L]
</IfModule>
# END WordPress
That was it — there was no .htaccess file there at all! I copied the .htaccess file from another working site (which was extremely similar but not identical to the one you posted) and everything works fine now. Thanks for your help and for creating and maintaining this great plugin!
Just for the record, the contents of my .htaccess file are:
# 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
Plugin Author
gioni
(@gioni)
I’m glad to hear that! I’ll appreciate it if you leave a review here: https://wordpress.org/support/plugin/wp-cerber/reviews/