Directory Access or PDF access via root directory
finisterra said 1 year, 2 months ago:
Hi there!
I have a Wordpress site loaded which is working out of the /wordpress/ directory. I have another folder in the root directory called /Documents/ with several PDF files i would like to link to, however, whenever I link to or try to open them at the address manually I receive the following error:
Warning: require_once(/home/content/98/8458398/html//wp-includes/load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/98/8458398/html/wp-load.php on line 46
Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/98/8458398/html//wp-includes/load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/98/8458398/html/wp-load.php on line 46
How do I go about fixing this? It is only this directory that needs to be accessible for file download; the rest of the site I’d prefer to have off limits!
I’ve already opened the file manager and set the permissions for the folder to web visible (and even executable), and I’ve tried using a .htaccess to open the directory but so far to no avail.
Thanks for the help!
Gary A said 1 year, 2 months ago:
@finisterra
You should be able to make the files accessible by adding a blank .htaccess file to that folder. If this doesn’t resolve the issue, can you provide a link to one of the files so that we can take a better look at it?
-Gary
finisterra said 1 year, 2 months ago:
I have added a blank .htaccess file to the folder and it worked brilliantly.
Thanks so much!
timb said 1 year, 2 months ago:
@finisterra
Glad to hear this solution worked for you and thanks for posting on our forum!
Tim B
6 min expected wait time