0

I have a folder on my WordPress site (named documentation; see screenshot), where I host a bunch of static HTML pages. How can I restrict access to the folder, so only logged in users are allowed to see it's content?

I tried to implement this solution How to Protect Uploads, if User is not Logged In? but when ths user is logged in, he gets a 404.

Thanks in advance...

enter image description here

0

Hi im very noob in wordpress but maybe this can give you some google results: Wp_nopriv Wp_priv

I think these were things for AJAX(the thing i just have experienced). But they had to do with the user being logged in or not. I wish you goodluck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.