Customers cannot logout when /wp-admin/ is protected
-
Website URL: https://www.blackbough.co.uk
Hello!! We want restricted access to the backend ‘Admin’ of wordpress and we are doing this by adding IP exceptions to a ‘deny all’ rule in the .htaccess file. This is working as expected for our site admins and we have white listed their IP’s to allow access to the backend Admin of WordPress.
The problem we have is for our Woocommerce customers that have customer accounts, they can login but they cannot logout as their IP address is being denied and they get a 403 message and cannot logout
– The question was – is there a way can we make an exception so that our customers can logout in the .htaccess file?
—- I asked this question to our host ROCHEN and they found a fix but suggested we should reach out to you – please see below. Also this fix doesn’t appear to work on a mobile device.
Many thanks Gordon on behalf of Alex
Hi Gordon,
Thanks for your patience here. If you amend the logout link to use “/wp-login.php?action=logout” this should work and avoid the restrictions in your /wp-admin folder.
There’s a guide here which you may find useful:
https://www.collectiveray.com/login-logout-links-woocommerce-menu
Alternatively as this would be a beneficial feature for other WooCommerce users too, so you might reach out to the WooCommerce developers and see if they can include an option for an alternate logout link in a future release.
—-
Jeremy R.
Rochen Limited
- The topic ‘Customers cannot logout when /wp-admin/ is protected’ is closed to new replies.