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_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]:
dobsons
22nd, Sep, 20vEZ3P1 buy cheap viagra http://pills2sale.com/
VictorAmisp
17th, Oct, 20Sizwvo udbbti tadalafil cialis buy cialis online http://ciamedusa.com/ several weeks unsurpassed role to pay off cialis online forum.
VictorAmisp
17th, Oct, 20Ikfzdr spdvea the buy cialis tadalafil online cialis professional After and in array from violent ingestions online version.
JamesVen
21st, Oct, 201 3 organics depreciate for the own four [url=https://ciamedusa.com/#]cialis dosage[/url] Ybiika rbpdzm cialis tablets tadalafil 20 mg
JamesVen
21st, Oct, 20Mxcifi vxguap price on cialis cialis prices [url=https://ciamedusa.com/]buy generic cialis online[/url] Mcuqtw mpqfcg cialis price generic tadalafil
bimatoprost ophthalmic generic
13th, Nov, 20bimatoprost ophthalmic generic https://carepro1st.com/
generic x dapoxetine
15th, Nov, 20generic x dapoxetine https://salemeds24.wixsite.com/dapoxetine
buy hydroxychloroquine plaquenil
21st, Nov, 20buy hydroxychloroquine plaquenil https://hydroxychloroquine.webbfenix.com/
ivermectol 12
23rd, Nov, 20ivermectol 12 https://ivermectin.mlsmalta.com/
30 day free trial vidalista
02nd, Dec, 2030 day free trial vidalista https://vidalista40mg.mlsmalta.com/
pharmacy drug online canada
03rd, Dec, 20pharmacy drug online canada https://edmeds.buszcentrum.com/
online pharmacy priligy no prescription
05th, Dec, 20online pharmacy priligy no prescription https://ddapoxetine.com/
order hydroxychloroquine from canada
06th, Dec, 20order hydroxychloroquine from canada https://hydroxychloroquinee.com/
does 2.5 mg cialis work
06th, Dec, 20does 2.5 mg cialis work https://wisig.org/
e insurance auto
08th, Dec, 20[url=http://ipdcarinsurance.com/]nationwide auto insurance[/url]
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]
albuterol patient assistance program gsk
09th, Dec, 20albuterol patient assistance program gsk https://amstyles.com/
price for sildenafil 100 mg tablet
13th, Dec, 20price for sildenafil 100 mg tablet http://cavalrymenforromney.com/
substitute for prednisone eye drops
14th, Dec, 20substitute for prednisone eye drops https://prednisone.bvsinfotech.com/
doxycycline hyclate 100 mg
15th, Dec, 20doxycycline hyclate 100 mg http://doxycycline.zolftgenwell.org/
average cost of 5 mg cialis
15th, Dec, 20average cost of 5 mg cialis https://tadalafili.com/
hydroxychloroquine sulfate tablet
17th, Dec, 20hydroxychloroquine sulfate tablet https://sale.azhydroxychloroquine.com/
dapoxetine india
19th, Dec, 20dapoxetine india https://dapoxetine.confrancisyalgomas.com/
trump's ties to hydroxychloroquine
19th, Dec, 20trump’s ties to hydroxychloroquine https://hydroxychloroquine.lm360.us/
how many viagra per prescription
20th, Dec, 20how many viagra per prescription https://viaplz.com/
best prices on tadalafil
22nd, Dec, 20best prices on tadalafil https://tadalafil.cleckleyfloors.com/
side effects of prednisone 20 mg
27th, Dec, 20side effects of prednisone 20 mg https://bvsinfotech.com/
Eleni Gotthard
28th, Dec, 20Whats 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, 20Thanks 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!|
cheap stromectol
07th, Jan, 21cheap stromectol https://ivermectin1st.com/
vidalista tablets 20 mg price in india
07th, Jan, 21vidalista tablets 20 mg price in india https://vidalista.buszcentrum.com/
hey
07th, Jan, 21Taxi 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.
cialis for bph treatment reviews
08th, Jan, 21cialis for bph treatment reviews https://cialzi.com/
vidalista online without prescription
17th, Jan, 21vidalista online without prescription http://viidalista.co/
Lbgeloks
24th, Jan, 21prescription less viagra what is generic viagra? quick ship viagra [url=http://genqpviag.com/]buy viagra online sydney[/url] ’
Jdbxeloks
25th, Jan, 21viagra, canada viagra with dapoxetine overnight delivery buy viagra australia [url=http://llviabest.com/]viagra 50mg canada[/url] ’
Lbgeloks
26th, Jan, 21viagra cialis enzyte how to get viagra without a doctor the real viagra for sale [url=http://genqpviag.com/]viagra toronto store[/url] ’
Tinder dating site
29th, Jan, 21tider , how to use tinder
[url=”http://tinderdatingsiteus.com/?”]tinder login[/url]
cheap flights
31st, Jan, 21Great 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, 21Hi 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.
Jdbxeloks
02nd, Feb, 21best prices for viagra generic viagra no prescription buy viagra online australia [url=http://llviabest.com/]buy viagra substitute[/url] ’
tinyurl.com
03rd, Feb, 21Great 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, 21Quality articles is the crucial to attract the viewers to pay a quick visit the web page,
that’s what this website is providing.
tinyurl.com
03rd, Feb, 21Appreciate this post. Let me try it out.
cost of tadalafil generic
04th, Feb, 21cost of tadalafil generic https://cialis.bee-rich.com/
KbcxBoth
04th, Feb, 21motion sickness canadia online pharmacy best canadian prescription prices
Ahkdeloks
04th, Feb, 21canada pharmacy online reviews hiv best online canadian pharcharmy
plaquenil for sale in mexico
04th, Feb, 21plaquenil for sale in mexico https://hydroxychloroquine4u.com/
Lbsxeloks
04th, Feb, 21anti fungal viagraaustralia cialis super active
JbnbPourn
04th, Feb, 21brand viagra online pharmacies of canada canadian drugs without prescription
Lbsxeloks
05th, Feb, 21prescription drugs without prior prescription buy viagra cheap pharmacies in canada
KbcxBoth
05th, Feb, 21weight loss motion sickness canadian drugs
Aqcfnecyanife
06th, Feb, 21buy original cialis online rush delivery on cialis where to get free samples of cialis
FvfcUnobe
06th, Feb, 21buy viagra viagra 160 mg board of pharmacy
Jbbveloks
06th, Feb, 21eye drop tadalafil canadian pharmaceuticals
FvfcUnobe
06th, Feb, 21viagra interac online viagra online australia buy phizer viagra
Fqhheloks
06th, Feb, 21canadian pharcharmy online fda approved us pharmacy no prior prescription canada discount drug
Ahkdeloks
06th, Feb, 21shoppers drug mart canada cheap canadian drugs canadian drugs online pharmacy
Kuikdoorm
06th, Feb, 21free viagra trial offer buy generic viagra online overnight viagra, depoxtine
JbnbPourn
07th, Feb, 21online pharmacy no prescription needed online prescription drugs canadian pharmaceuticals online
generic cialis available united states
07th, Feb, 21generic cialis available united states http://cialis.anafassia.com/
Jbbveloks
08th, Feb, 21price pro pharmacy canada canadian online pharmacies prescription drugs medical information online
coupon for hydroxychloroquine
08th, Feb, 21coupon for hydroxychloroquine http://hydroxychloroquined.online/
Fqhheloks
09th, Feb, 21Viagra Professional eye drop canadian pharcharmy online fda approved
NncsUnobe
09th, Feb, 21drug similiar to viagra generis viagra which is safer viagra or cialis
ampicillin pills how they help you
09th, Feb, 21This is very interesting, You are a very skilled blogger.
I have joined your rss feed and look forward to seeking more of your wonderful post.
Also, I have shared your site in my social networks! http://antiibioticsland.com/Ampicillin.htm
NncsUnobe
09th, Feb, 21viagra prolonged viagra express delivery viagra australia no prescription
KvaxBoth
11th, Feb, 211 hour cash loans australia how to make cash advance on american express are cash advances taxed
Ahbzeloks
11th, Feb, 21ncb cash secured loan 200 000 cash loan payday loans no veritec
Labxeloks
11th, Feb, 21cialis erste einnahme original cialis pills costo cialis nelle farmacie
JbnvPourn
11th, Feb, 21wordpress hacked payday loans bbb approved payday loan companies approved cash advance olive branch ms
http://tinyurl.com/y5fs3lws
12th, Feb, 21My 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!
Labxeloks
12th, Feb, 21equivalent du cialis en homeopathie cialis preise frankreich posso beber cerveja e tomar cialis
KvaxBoth
12th, Feb, 21payday loans rock springs wy payday loans in chino hills payday loans ames
sildenafil without a doctor prescription
12th, Feb, 21sildenafil without a doctor prescription https://sildenafili.com/
Abcfnecyanife
13th, Feb, 21viagra for sale in liverpool viagra 500mg viagra 4 pack
Jbbneloks
13th, Feb, 21wirkung cialis 20mg shoppers drug mart cialis what if i take cialis and dont need it
Fqbbeloks
13th, Feb, 21payday loan ft worth tx cash loans las vegas nv do banks loan money for mobile homes
FbsgUnobe
13th, Feb, 21fast delivery cialis super active viagra vs cialis reviews cialis use in dogs
FbsgUnobe
13th, Feb, 21price of cialis at walgreens best ed cialis pills viagra cialis enzyte
Ahbzeloks
14th, Feb, 21payday loans in uvalde tx cash advance fort dodge iowa payday loans north oak
Ibacroli
14th, Feb, 21buckeye community health plan – viagra Ikvfv57
cialis dos and don’ts
viagra indien erfahrungen: [url=https://www.withoutbro.com/]generic viagra[/url]
JbnvPourn
14th, Feb, 21cash generators loans cash advance shelbyville in netspend payday loan
tadalafil without doctor prescription
15th, Feb, 21tadalafil without doctor prescription https://tadfil.online/
Jbbneloks
15th, Feb, 21does cialis affect sperm count kde koupit cialis cialis forum srbija
JamesHoact
16th, Feb, 21http://bio-catalyst.com/ – generic minomycin
nitrofurantoin generic
[url=http://bio-catalyst.com/]augmentin tablets[/url] keftab online
Fqbbeloks
17th, Feb, 21payday advance claremore ok breeze payday loans payday loan market
NbnhUnobe
17th, Feb, 21where to buy viagra in canada online sildenafil generic 100 mg generic sildenafil in usa
viagra without a doctor prescription safe
20th, Feb, 21viagra without a doctor prescription safe http://viaaagra.com/
cialis buy online
20th, Feb, 21cialis buy online http://cialllis.com/
hydroxychloroquine for sale
23rd, Feb, 21hydroxychloroquine for sale https://hhydroxychloroquine.com/
KndnBoth
27th, Feb, 21viagra pill cost viagra not working viagra street value
Clarkmow
27th, Feb, 21v1r7s scd55 bdld
Life Experience Degree
27th, Feb, 21This 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.
KndnBoth
27th, Feb, 21buy viagra in mexico viagra over the counter walmart does viagra make you bigger than normal
brand vidalista 60 mg
02nd, Mar, 21brand vidalista 60 mg http://vidallista.com/