WordPress preventing you from password protecting a directory?

You wish to password protect a subdirectory with a .htpassword and .htaccess, but you have WordPress installed in the root with perma-links enabled. The solution is simple.

1. Create a new file in the subdirectory (public_html/path/to/) and name it onerror.html

2. Edit the root .htaccess where the modrewrite rules are for wordpress. Add the following line to the very top of the file and save.

  • Email, SSL
  • 80000 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Related Articles

Bandwidth pro

Bandwidth is the amount of data that can be transferred to and from your account in one month....

Can I use my account and my site if domain name hasn't propagated

Yes, you can use your website without a domain name.We provide you a temporary URL in your...

default.html, start page

This is a home page provided by HDWEBPROVIDER™. You may delete it at anytime.Normally, when you...

Dreamweaver, WordPress Direct, Excite, XSite publishing

These programs work well for publishing to your primary domain name, but it can be tricky to...

Email verification for tickets

Box trapper helps us reduce spam. The first time you submit a ticket, you will need to check your...