Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
remove signature, improve punctuation and styling
Source Link

I have a wordpressWordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in wordpressWordPress users to be able to have access to those /docs html pages (not to be confused with wordpressWordPress 'pages').

I created a WordpressWordPress 'portal' page which displays links to the /docs pages if the visitor is logged in. I would also like to put in a textual search function (which I know how to do) so logged in visitors can get a list of relevant /docs html pages

What I -don't-don't know how to do is prevent -not-not logged in visitors from direct access to the /docs pages for both links and searches?

I know I could do these if I converted the html pages to php and checked ana referer. But I don't want to have to redo all the old html if possible (if I have to do -that-that I'll just import them into a wordpressWordPress taxonomy-  --but but I hope to avoid that!)

I looked at .htaccess and I was hoping to perhaps set an ENV variable or use REFERER, but I keep reading that such things are not reliable.

Ideas?

TIA,

---JC

have a wordpress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in wordpress users to be able to have access to those /docs html pages (not to be confused with wordpress 'pages').

I created a Wordpress 'portal' page which displays links to the /docs pages if the visitor is logged in. I would also like to put in a textual search function (which I know how to do) so logged in visitors can get a list of relevant /docs html pages

What I -don't- know how to do is prevent -not- logged in visitors from direct access to the /docs pages for both links and searches?

I know I could do these if I converted the html pages to php and checked an referer. But I don't want to have to redo all the old html if possible (if I have to do -that- I'll just import them into a wordpress taxonomy---but I hope to avoid that!)

I looked at .htaccess and I was hoping to perhaps set an ENV variable or use REFERER, but I keep reading that such things are not reliable.

Ideas?

TIA,

---JC

I have a WordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in WordPress users to be able to have access to those /docs html pages (not to be confused with WordPress 'pages').

I created a WordPress 'portal' page which displays links to the /docs pages if the visitor is logged in. I would also like to put in a textual search function (which I know how to do) so logged in visitors can get a list of relevant /docs html pages

What I don't know how to do is prevent not logged in visitors from direct access to the /docs pages for both links and searches?

I know I could do these if I converted the html pages to php and checked a referer. But I don't want to have to redo all the old html if possible (if I have to do that I'll just import them into a WordPress taxonomy  -- but I hope to avoid that!)

I looked at .htaccess and I was hoping to perhaps set an ENV variable or use REFERER, but I keep reading that such things are not reliable.

Ideas?

Source Link
jchwebdev
  • 775
  • 2
  • 14
  • 33

Allow Access To Subfolder Of HTML For Logged In Visitors

have a wordpress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in wordpress users to be able to have access to those /docs html pages (not to be confused with wordpress 'pages').

I created a Wordpress 'portal' page which displays links to the /docs pages if the visitor is logged in. I would also like to put in a textual search function (which I know how to do) so logged in visitors can get a list of relevant /docs html pages

What I -don't- know how to do is prevent -not- logged in visitors from direct access to the /docs pages for both links and searches?

I know I could do these if I converted the html pages to php and checked an referer. But I don't want to have to redo all the old html if possible (if I have to do -that- I'll just import them into a wordpress taxonomy---but I hope to avoid that!)

I looked at .htaccess and I was hoping to perhaps set an ENV variable or use REFERER, but I keep reading that such things are not reliable.

Ideas?

TIA,

---JC