Trouble moving wp-content
-
Hey guys,
I am having a weird problem. I am trying to move wp-content outside of the web root directory. If it makes a difference, wp-config is one level above the web root, in the same directory as wp-content. I changed these two lines in wp-config
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' ); define( 'WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/content' );
I know WordPress has found the new directory because when I installed a new theme it was installed in the right place. But when I activated the theme, I get a bunch of 404s for the theme files. The browser tries to access
https://sitename.com/content/themes/twentytwelve/style.css
but gets a 404 error in return. Not sure what I did wrong. Am I missing something obvious here?Cheers,
Joe
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Trouble moving wp-content’ is closed to new replies.