Rename the wp-content folder

Posted on 30th September, 2015 97 Comments

First select the wp-content folder and give it your chosen name (assets, stuff, content…) For this example I’m going to name it stuff.

With that done, open your wp-config.php file and add the four lines below, above the require_once(ABSPATH . 'wp-settings.php'); line at the bottom of your file.

define ('NEW_CONTENT_FOLDERNAME', 'stuff'); /* Change stuff to the name you gave your wp-content folder */
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');

With this done all files uploaded will use the new “stuff folder”, but wait…

If you have images already added to the site, then you’ll want to replace the old link to the files with the new one.

Add this to your functions.php.

define('WP_UPLOADSURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
add_filter( 'the_content', function( $upload_dir_uri ){
	return str_replace( WP_UPLOADSURL . '/wp-content/', WP_UPLOADSURL . '/stuff/', $upload_dir_uri ); /* Again Change stuff */


To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:

  1. PHP use - [php] <?php code here ?> [/php]
  2. CSS use - [css] #code-here {} [/css]
  3. HTML use - [html] <div> code here </div> [/html]
  4. JS use - [js] $(".codeHere") [/js]


21st, Oct, 20

1 3 organics depreciate for the own four [url=]cialis dosage[/url] Ybiika rbpdzm cialis tablets tadalafil 20 mg


21st, Oct, 20

Mxcifi vxguap price on cialis cialis prices [url=]buy generic cialis online[/url] Mcuqtw mpqfcg cialis price generic tadalafil

Bad Credit

08th, Dec, 20

[url=]emergency loan[/url] [url=]consolidation debt[/url]

geico car insurance

08th, Dec, 20

[url=]iaa insurance auto auction[/url] [url=]commercial auto insurance[/url]

Eleni Gotthard

28th, Dec, 20

Whats up very nice website!! Man .. Beautiful .. Amazing .. I’ll bookmark your web site and take the feeds additionally? I’m happy to find numerous useful information right here in the submit, we need work out more strategies on this regard, thanks for sharing. . . . . .|

Jorge Gail

30th, Dec, 20

Thanks for the marvelous posting! I certainly enjoyed reading it, you could be a great author.I will remember to bookmark your blog and will often come back later in life. I want to encourage you to ultimately continue your great writing, have a nice holiday weekend!|


07th, Jan, 21

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

Hi there, I enjoy reading all of your post. I like to write a little comment to support

cheap flights

31st, Jan, 21

Great beat ! I would like to apprentice while you amend your
web site, how could i subscribe for a blog site?
The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept

cheap flights

01st, Feb, 21

Hi there everybody, here every one is sharing such experience, thus it’s fastidious to read this webpage, and I
used to visit this website all the time.

03rd, Feb, 21

Great work! That is the type of information that
should be shared around the web. Disgrace on the search engines for no longer positioning this publish upper!
Come on over and talk over with my website .
Thank you =)

cheap flights

03rd, Feb, 21

Quality articles is the crucial to attract the viewers to pay a quick visit the web page,
that’s what this website is providing.

12th, Feb, 21

My brother recommended I may like this website.
He was entirely right. This put up actually made my day.
You can not consider just how much time I had spent for this information! Thanks!


14th, Feb, 21

buckeye community health plan – viagra Ikvfv57
cialis dos and don’ts
viagra indien erfahrungen: [url=]generic viagra[/url]

Life Experience Degree

27th, Feb, 21

This is really intriguing, You’re an especially efficient writer. I have signed up with your feed additionally look ahead to finding your personal interesting write-ups. Furthermore, I’ve got shared the blog inside our social networks.

Leave a Comment

To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:

  1. PHP use - [php] <?php code here ?> [/php]
  2. CSS use - [css] #code-here {} [/css]
  3. HTML use - [html] <div> code here </div> [/html]
  4. JS use - [js] $(".codeHere") [/js]