Rename the wp-content folder

Posted on 30th September, 2015 194 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_CONTENT_DIR', ABSPATH . NEW_CONTENT_FOLDERNAME);
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_CONTENT_URL', WP_SITEURL . NEW_CONTENT_FOLDERNAME);

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 */
});

Comments

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]

JamesVen

21st, Oct, 20

1 3 organics depreciate for the own four [url=https://ciamedusa.com/#]cialis dosage[/url] Ybiika rbpdzm cialis tablets tadalafil 20 mg

JamesVen

21st, Oct, 20

Mxcifi vxguap price on cialis cialis prices [url=https://ciamedusa.com/]buy generic cialis online[/url] Mcuqtw mpqfcg cialis price generic tadalafil

Bad Credit

08th, Dec, 20

[url=https://badcreditnloans.com/]emergency loan[/url] [url=https://denloans.com/]consolidation debt[/url]

geico car insurance

08th, Dec, 20

[url=https://vmcarinsurance.com/]iaa insurance auto auction[/url] [url=https://autoinsurancerow.com/]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!|

hey

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
you.

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.

tinyurl.com

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.

http://tinyurl.com/y5fs3lws

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!

Ibacroli

14th, Feb, 21

buckeye community health plan – viagra Ikvfv57
cialis dos and don’ts
viagra indien erfahrungen: [url=https://www.withoutbro.com/]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.

Google

18th, Apr, 21

Google

The information and facts mentioned in the write-up are some of the best out there.

Google

28th, Apr, 21

Google

Very couple of internet websites that transpire to become in depth beneath, from our point of view are undoubtedly effectively worth checking out.

buy dexedrine 15mg online

29th, Apr, 21

buy dexedrine 15mg online

[…]Every as soon as in a when we pick out blogs that we study. Listed beneath are the most current websites that we pick […]

crossdressers cams

29th, Apr, 21

crossdressers cams

[…]check below, are some completely unrelated web sites to ours, even so, they are most trustworthy sources that we use[…]

website

30th, Apr, 21

website

[…]Every after in a even though we pick out blogs that we study. Listed below are the most up-to-date sites that we pick […]

essaypro.co

05th, May, 21

essaypro.co

[…]please visit the websites we stick to, like this a single, because it represents our picks from the web[…]

موقع سكس

09th, May, 21

موقع سكس

[…]that may be the end of this write-up. Right here you’ll locate some sites that we believe you’ll value, just click the hyperlinks over[…]

best vibrator

09th, May, 21

best vibrator

[…]The information and facts talked about inside the post are some of the best out there […]

bitcoin atm near vancouver

11th, May, 21

bitcoin atm near vancouver

[…]we like to honor a lot of other world-wide-web sites around the net, even if they aren’t linked to us, by linking to them. Underneath are some webpages really worth checking out[…]

Buy Percocet Online

15th, May, 21

Buy Percocet Online

[…]we prefer to honor a lot of other world wide web web sites around the web, even though they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[…]

nanaimo canada

16th, May, 21

nanaimo canada

[…]check below, are some completely unrelated internet websites to ours, having said that, they are most trustworthy sources that we use[…]

best kegel balls

16th, May, 21

best kegel balls

[…]we came across a cool site that you could possibly enjoy. Take a look for those who want[…]

Architectural design

20th, May, 21

Architectural design

[…]we prefer to honor many other internet web-sites around the internet, even though they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[…]

Realistic Dildo

24th, May, 21

Realistic Dildo

[…]always a major fan of linking to bloggers that I really like but don’t get lots of link adore from[…]

umraniye milf escort

24th, May, 21

umraniye milf escort

[…]here are some links to web sites that we link to since we consider they are really worth visiting[…]

vibrators

25th, May, 21

vibrators

[…]just beneath, are many entirely not connected web pages to ours, nonetheless, they’re surely really worth going over[…]

caluanie for sale

26th, May, 21

caluanie for sale

[…]although internet websites we backlink to below are considerably not associated to ours, we feel they’re actually worth a go as a result of, so possess a look[…]

thrusting dildo

27th, May, 21

thrusting dildo

[…]always a major fan of linking to bloggers that I love but don’t get a good deal of link adore from[…]

ubreakifix

27th, May, 21

ubreakifix

[…]we came across a cool web page that you could enjoy. Take a search if you want[…]

porn

28th, May, 21

porn

[…]the time to study or stop by the content or web sites we’ve linked to below the[…]

houses for sale belpre ohio

29th, May, 21

houses for sale belpre ohio

[…]Every the moment inside a whilst we pick blogs that we read. Listed below are the newest internet sites that we pick out […]

onlinepharmacycanada.org

31st, May, 21

onlinepharmacycanada.org

[…]very couple of sites that come about to be detailed below, from our point of view are undoubtedly very well worth checking out[…]

male masturbator

31st, May, 21

male masturbator

[…]that may be the finish of this write-up. Right here you’ll uncover some web pages that we assume you will appreciate, just click the links over[…]

Springfield Armory 911

01st, Jun, 21

Springfield Armory 911

[…]please visit the internet sites we comply with, including this one particular, as it represents our picks through the web[…]

Dental insurance Alberta

03rd, Jun, 21

Dental insurance Alberta

[…]Wonderful story, reckoned we could combine some unrelated data, nonetheless truly really worth taking a appear, whoa did a single learn about Mid East has got far more problerms at the same time […]

cell.phone repair near me

03rd, Jun, 21

cell.phone repair near me

[…]we like to honor quite a few other internet web sites around the net, even when they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[…]

suction cup dildos

04th, Jun, 21

suction cup dildos

[…]Every as soon as inside a when we choose blogs that we read. Listed below would be the newest internet sites that we select […]

top sex toys

06th, Jun, 21

top sex toys

[…]The information and facts mentioned in the post are a few of the most beneficial obtainable […]

rechargeable vibrator

15th, Jun, 21

rechargeable vibrator

[…]check beneath, are some entirely unrelated internet websites to ours, having said that, they are most trustworthy sources that we use[…]

golden tilefish

16th, Jun, 21

golden tilefish

[…]just beneath, are various entirely not related internet sites to ours, nevertheless, they may be certainly really worth going over[…]

ground lease

27th, Aug, 21

ground lease

[…]the time to study or take a look at the material or sites we have linked to below the[…]

MILF Porn

28th, Aug, 21

MILF Porn

[…]Wonderful story, reckoned we could combine a number of unrelated data, nevertheless really worth taking a appear, whoa did 1 find out about Mid East has got more problerms at the same time […]

huay

28th, Aug, 21

huay

[…]Wonderful story, reckoned we could combine some unrelated information, nonetheless definitely really worth taking a search, whoa did one study about Mid East has got more problerms too […]

suction cup dildos

30th, Aug, 21

suction cup dildos

[…]Every after in a when we opt for blogs that we study. Listed beneath would be the most up-to-date web-sites that we decide on […]

Marijuana Wax for Sale

31st, Aug, 21

Marijuana Wax for Sale

[…]although internet sites we backlink to below are considerably not connected to ours, we really feel they are essentially worth a go via, so have a look[…]

site de streaming

03rd, Sep, 21

site de streaming

[…]very few internet websites that happen to be detailed below, from our point of view are undoubtedly nicely worth checking out[…]

jogar online

04th, Sep, 21

jogar online

[…]that would be the finish of this write-up. Right here you will uncover some web sites that we assume you’ll appreciate, just click the links over[…]

twitter downloader

04th, Sep, 21

twitter downloader

[…]we like to honor numerous other world wide web web-sites around the net, even when they aren’t linked to us, by linking to them. Under are some webpages really worth checking out[…]

male masturbators

06th, Sep, 21

male masturbators

[…]always a major fan of linking to bloggers that I adore but don’t get a great deal of link adore from[…]

masturbation men

07th, Sep, 21

masturbation men

[…]Every after inside a even though we select blogs that we read. Listed beneath are the most recent sites that we opt for […]

penis enhancer

08th, Sep, 21

penis enhancer

[…]we came across a cool site that you simply may delight in. Take a appear in the event you want[…]

메이저놀이터

10th, Sep, 21

메이저놀이터

[…]very few websites that transpire to become in depth beneath, from our point of view are undoubtedly well worth checking out[…]

faberge eggs replica

14th, Sep, 21

faberge eggs replica

[…]check beneath, are some entirely unrelated websites to ours, on the other hand, they are most trustworthy sources that we use[…]

African gray for sale

20th, Sep, 21

African gray for sale

[…]that will be the end of this article. Here you will come across some sites that we think you will appreciate, just click the hyperlinks over[…]

clit sucking vibrator

22nd, Sep, 21

clit sucking vibrator

[…]Wonderful story, reckoned we could combine several unrelated information, nonetheless seriously worth taking a search, whoa did one particular learn about Mid East has got a lot more problerms also […]

بديل تروكولر

23rd, Sep, 21

بديل تروكولر

[…]we like to honor several other web internet sites around the web, even when they aren’t linked to us, by linking to them. Beneath are some webpages worth checking out[…]

pc apps for windows 7

24th, Sep, 21

pc apps for windows 7

[…]Wonderful story, reckoned we could combine a few unrelated data, nonetheless really really worth taking a search, whoa did one discover about Mid East has got much more problerms at the same time […]

Referencement web

27th, Sep, 21

Referencement web

[…]here are some hyperlinks to web sites that we link to because we consider they are worth visiting[…]

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]