Question

Here is what I am thinking of trying to hide wp-content from the urls of files included in page source.

defining the following in wp-settings.php

define ('WP_CONTENT_URL','http://example.com/myownfoldername');

and adding this to .htaccess

RewriteRule ^myownfoldername/(.*) /wp-content/$1 [QSA,L]

This seems to work fine with no additional plugins on localhost `but will it work seamlessly on the online site with a few plugins. I am more concerned about w3 total cache.

I guess I need now worry about a few reference of wp-content in database as even if it exists there it is still a valid link?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top