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', 'http://' . $_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
http://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?