How to move wordpress uploads folder to a subdomain?

fromrachel

Member
Joined
Dec 14, 2013
Messages
231
Points
18
Hello,

Are there any ways how to move wordpress uploads folder to a subdomain?
I need to do this, it can make me easy to manage images files and looks more professional for my blog

Please suggest
Thanks
 

Jovani

Active member
Joined
Jul 10, 2012
Messages
338
Points
28
Normally, when you upload a file on wordpress, it is stored in the default addresses looks like
https://www.webmastersun.com/blog/wp-content/uploads/2014/01/advertise-on-webmastersun-forum.png ( I got image file url from webmastersun.com blog for example :D)

Now you want to change file upload path, the path it takes the form of subdomains, ie, how do uploads.domain.com/your_file_name.jpg

Requirements to accomplish this:
- Your hosting support to create subdomains and change the root directory of the subdomain
- Subdomains and main domain on the same hosting

How to do
Download and install the [URLnf="https://wordpress.org/plugins/wp-original-media-path/"]WP Plugin Original Media Path [/URLnf]
After installed. Access Settings -> Media
At Store uploads in this folder setting is wp-content/uploads
At Full URL path to files setting is [URLnf=http://uploads.domain.com]http://uploads.domain.com[/URLnf]

Log In to create a subdomain Hosting
Create a subdomain in Cpanel as follow information, remember to replace yourdomain.com to your real domain.
Subdomain: yoursubdomain.yourdomain.com
Document root: public_html/wp-content/uploads/

Ok now you can check to see your images stored via sub domain.

Benefits when moving wordpress uploads folder to a subdomain
- Create professional URL
- Easy to use CDN services for subdomain to cache static files (images, css, js, video ...)
- Web acceleration by reducing transmission of unnecessary cookies

All information above I showed you above. You just change to your url on your website.

Hope it helps!
 
Newer threads
Replies
4
Views
2,913
Replies
4
Views
4,248
Replies
7
Views
6,913
Replies
1
Views
2,721
Latest threads
Replies
1
Views
27
Replies
1
Views
26
Replies
1
Views
125

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top