WordPress Development Asked on October 30, 2021
I’m running a WP+WOO site for a client and thought that a simple way to secure the admin login area would be to password protect it. The problem is that sometimes (especially on WooCommerce pages) there’s one or two files that get called from /wp-admin and this triggers the login popup.
I’ve googled a lot on how to do this with htaccess but I couldn’t find anything, and the closes thing I found is 10 years old and is not working for me.
Any ideas on how to achieve this?
As far as I know, the few files that you are talking about are always going to be the same, that means you can add exceptions to your .htaccess
and "let them go through the cracks".
With an example of code from what you wrote so far may help us direct you on how to proceed to do this.
Here is an example of how this is generally done although that uses old code (Allow
/Deny
) which I don't recommend. It shows you how to change the Deny
into an Allow
using the <FilesMatch>
tag.
Answered by Alexis Wilke on October 30, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP