TangerineFrog
Member
Posted 6 months ago #
Hi
Each time I attempt to install a theme I get an error saying WP is unable to locate wp-content and I am seeing just a blank screen when I enter my url.
I have moved the wp-content into a new folder I created in another directory and added the following two lines into the config-file in an attempt to tell wp where to find it:
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT']. '/newfolder/wp-content');
define('WP_CONTENT_URL', 'http://tangerinefrog.com/newfolder/wp-content');
I'm also getting theme-related errors which I'm guessing might be directly related to this one issue. If anyone has any ideas I would be really grateful.
Thanks.
TangerineFrog
Member
Posted 6 months ago #
Have moved wp-content out of new folder and back into root directory which has eliminated all errors and theme is now visible in my url.
However, other comments on this forum suggest the wp-content folder can be moved outside of the root directory (and out of the wordpress folder) and renamed to deny access to hackers. But each time I do that I get the errors as mentioned in my previous post.
Does anyone have any ideas or solutions, or does the wp-content have to remain as it is in the root directory alongside the wordpress installation?
Thanks.
grantde
Member
Posted 6 months ago #
I read on a webmaster help page that if you put the index file in every folder that it thwarts hackers. I have never tried it however. I would be interested in this or other methods.