How to server static content from within WordPress?
-
Hi
I am new to WordPress and this is the first site I have set up. I am using the BitNami stack.
I am trying to set up a system for planning team members to review environmental simulation data. Although the data is not secret, it is confidential. I have added the ‘Registered Users Only’ plugin to enforce that there is a sign in page before getting in to the site.
The bulk of the content of the site is the output from environmental simulation models. There are literally gigabytes of data in hyperlinked html, png, pdf and csv formats. I would like to have WordPress Pages and Posts that link to these simulation outputs. Planning team members can browse the simulation output, and provide comments or posts to discuss their observations and concerns.
I have figured out how to set all of this up except for one thing: I would like to make access to the simulation output be only allowed for logged in users. I cannot figure out how to make this work.
Here is what I have considered:
– Put the simulation output on a static part of the web site, and add links from within WordPress to that output. However, non-logged in people can still access these static pages directly.– Use the ‘Redirection’ or ‘Page Links To’ plugin to redirect to the external pages. Non-logged in people can still access these directly.
– Import the simulation data in to WordPress. This does not seem like a good idea, because there is so much of it, and it really is not meant to be wrapped within a blog.
– Put the pages within the wp-content folder. This seems to partially work, that I can access the pages with a URL that is within WordPress. However, authentication is not required and non-logged in access is permitted.
Is what I am trying to do at all possible? In essence I would like WordPress to intercept each page request, ensure that the request is from a logged in user, and then fulfill the request with a verbatim copy of the static item (html, png, pdf, etc). Is this something that I can do with a custom template?
- The topic ‘How to server static content from within WordPress?’ is closed to new replies.