Close Menu
JustwebworldJustwebworld
  • Astrology
  • Business & Finance
    • Cryptocurrency
    • Make Money
    • Entrepreneur
    • Brands
    • Companies
    • Personal Finance
      • Banking
      • Insurance
      • Trading and Investing
  • Tech
    • Computing
    • Cybersecurity
    • Electronics
    • Android
    • Apple
    • Gadgets
    • Social Media
    • Mobile Apps
    • Softwares
  • Education
    • Vocabulary
    • Abbreviations
    • General Knowledge
    • Writing & Translation
  • Lifestyle
    • Beauty & Cosmetics
    • Fashion & Style
    • Furniture & Decor
    • Luxury
    • People & Relationships
    • Pets and Animals
    • Shopping
    • Parenting
    • Gardening
    • Birthdays
  • Health
  • Travel
  • Auto
  • Gaming
  • Food
  • Entertainment
  • Sports
Facebook X (Twitter) Instagram
Thursday, May 22
  • About
  • Contact Us
  • Advertise With Us
  • Disclaimer
  • Terms & Conditions
  • Privacy Policy
JustwebworldJustwebworld
  • Astrology
  • Business & Finance
    • Cryptocurrency
    • Make Money
    • Entrepreneur
    • Brands
    • Companies
    • Personal Finance
      • Banking
      • Insurance
      • Trading and Investing
  • Tech
    • Computing
    • Cybersecurity
    • Electronics
    • Android
    • Apple
    • Gadgets
    • Social Media
    • Mobile Apps
    • Softwares
  • Education
    • Vocabulary
    • Abbreviations
    • General Knowledge
    • Writing & Translation
  • Lifestyle
    • Beauty & Cosmetics
    • Fashion & Style
    • Furniture & Decor
    • Luxury
    • People & Relationships
    • Pets and Animals
    • Shopping
    • Parenting
    • Gardening
    • Birthdays
  • Health
  • Travel
  • Auto
  • Gaming
  • Food
  • Entertainment
  • Sports
JustwebworldJustwebworld
Home » Development & Programming » Web Development » WordPress

How to Host Images of WordPress Blog on Subdomain for Better Speed

Michael AustinBy Michael Austin WordPress
Facebook Twitter LinkedIn Telegram Pinterest Reddit Email WhatsApp
Follow Us
WhatsApp Telegram
Share
Facebook Twitter LinkedIn Pinterest Reddit Telegram WhatsApp

Table of Contents

Toggle
    • Host Images of WordPress Blog on Subdomain
  • Host Images of WordPress Blog on Subdomain:
      • 1.) Create a Subdomain for your site
      • 2.) Change Default Image Uploading Folder in WordPress
      • 3.) Update the old post images location:
      • 4.) Redirect the old images link to to Subdomain

Host Images of WordPress Blog on Subdomain

We all are know that Page Speed of the Web Page is Important factor for the Search Engine Ranking. The Web Page who have a better Page Loading Time that will Rank better for sure in a Search Engine. “The Web Must be a Faster” – Google Inc. Here I will going to show you How to Host Images of WordPress Blog on Subdomain for Better Speed of the WordPress Website/Blog.

Actually In WordPress Site/Blog the Images are Host in a Same Domain, This is Slow down your Page Speed of your WordPress Blog/Site. Instead of Hosting Images On a Same Domain, We can Host Images on Subdomain and that will surely Improve the Performance of WordPress Website or Blog.

How to Host Images of WordPress Blog on Subdomain for Better Speed

Host Images of WordPress Blog on Subdomain:

You May Heard the thing WordPress not allow the Host WordPress Images On Subdomain, But It allows. This Article is about How to Host Images of WordPress Blog on Subdomain for Better Web Page Speed.

First of All

1.) Create a Subdomain for your site

Login to your CPanel and Click on Subdomains

Create Sub Domain for your site

Then One Page will appear, Enter your Subdomain name. Here I have insert Images. Document Root means Directory after creating Subdomain the Directory/Folder will automatically created. you can also modify the Directory Path.

Host Image for Sub Domain

Note: This Facility is Provided by the Hosting Providers, If you are unable to Create a Subdomain then you have to contact your Hosting Providers.

See Also: How to Install WordPress on HostGator

Also Read: How to Install an SSL Certificate On WordPress? How to Install an SSL Certificate On WordPress?

2.) Change Default Image Uploading Folder in WordPress

After the release of WordPress 3.5, the option for custom uploading path has been removed from the ‘Media settings’. So for getting them back you have to download this plugin click here. This Plugin Help you to Set a New path of Uploading Media in WordPress Blog/Site(You can Remove this Plugin After Completion of the Hosting Image in Subdomain Process).

Update New Path of Media What You have to do go to the Settings of the Plugin WP Original Media Path and Give Name of Folder and Subdomain path where you host now Images for WordPress Blog. So Your New Images Store on a Subdomain means New Location.

3.) Update the old post images location:

After Doing this Things Now it’s Time to Move Old Uploading Images on a New Location means on a Subdomain. Changing the Location of all old files on New Location is very stupid Job, So what you have to do So, First download all the folders containing the images under /public_html/wp-content/uploads/ from your server and upload all those folders in the folder /public_html/images/. To update the new location of your images, for that you have to execute a simple SQL query on your database. You can do this from the phpMyAdmin in your hosting control panel.

PhpMyAdmin SQL Database

Now Click on the phpMyAdmin > select your database from the left side > click on the “SQL” tab.

PhpMyAdmin SQL Query

Now You put the following query in the box.

UPDATE wp_posts SET post_content = REPLACE(post_content,'http://www.yourdomain.com/wp-content/uploads/','http://images.yourdomain.com/')

Also Read: WordPress Vs Wix: Which One Should You Choose WordPress Vs Wix: Which One Should You Choose

Replace Images to New Location

Click on “GO”. Then This query will replace “http://www.yourdomain.com/wp-content/uploads/”  with “http://images.yourdomain.com/” in all the image location URL. For update the images links in the media library run the following sql command:

UPDATE wp_posts SET guid = REPLACE(guid,'http://www.yourdomain.com/wp-content/uploads/','http://images.yourdomain.com/')

4.) Redirect the old images link to to Subdomain

Now You have completed all the Jobs with your site and database. But Still Google has crawled and indexed your old images. So redirect the old image urls to the new image URLs. to let Google know that those images are same. To do so add the following 1 line in your .htaccess file.

RedirectMatch 301 ^/wp-content/uploads/(.*)$ http://images.yourdomain.com/$1

Note: Backup your .htaccess file before any changes. That’s all to set your Subdomain as post-images upload location.

See Also: Best Free SEO Plugins For WordPress

Now That’s It. Now You Host Images of WordPress Blog on Subdomain for Better Speed of WordPress Website/Blog. This Tweak Speed up your WordPress Website and Increase your Blog Performance.

If you face any Problem with this Tweak you are most welcome to ask us, Just Comment below.

Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Telegram WhatsApp Copy Link
Previous ArticleTop 5 WordPress Plugins for An E-Commerce Business In 2019
Next Article How to Add PayPal Donate Button on Your WordPress Blog
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is an expert writer who loves creating engaging and easy-to-understand content. With years of experience, he specializes in writing well-researched articles that inform, inspire, and entertain readers. His clear and simple writing style makes complex topics easy to grasp. Whether it's trending news, helpful guides, or expert insights, Michael’s content is designed to be valuable and SEO-friendly, ensuring it reaches the right audience. Stay connected for his latest articles!

Related Posts

Post Content From Facebook On Your Site Automatically

WordPress Website Compliant With GDPR – How To Do It?

6 Benefits Of Using WordPress

How to Deploy An eCommerce Site On WordPress

7 Benefits of WordPress Over Traditional Websites Design By Srmehranclub

BuddyX Review – Best Theme For Social Community

1 Comment

  1. subin babu on June 1, 2018 1:14 pm

    Good Info, Thank you Harshil 🙂

Leave A Reply

Categories
Archives

The Price of Keeping Financial Secrets in a Marriage

Latest Anime Saga Codes (May 2025) – Redeem Free Rewards | Before They Expire!

Jose Alvarado NBA 2025: Inspiring Journey, Impressive Stats, Big Contract & Puerto Rico Pride

Who is Hazel Brugger? Top Swiss Comedian, Eurovision Host & Comedy Queen of Europe

Luke Kornet Full Player Profile | Age, Height, Net Worth, Career Stats 2025

Who Is Brent Faiyaz? Age, Songs, Albums, Net Worth & Tour 2025

FaZe Rug Net Worth, Age, Girlfriend, House & Career | Must Read

Happy Father’s Day Wishes & Quotes | Heartfelt Messages, Sayings & Captions for Dad 2025

Why Stewart Vickers Is the Best SEO Expert in the World

Diljit Dosanjh : Latest Songs, Movies, Net Worth, Concerts & Full Biography

DMCA.com Protection Status
Quick Links
Age Calculator
Angel Number Calculator
Case Converter
Sudoku Online
Word Counter
Love Calculator
Useful Links
Number to Words
Period Calculator
Yes-No Picker Wheel
Demon Name Generator
Kingdom Name Generator
Harry Potter Name Generator
Helpful Resources
Colors Name In English
Best Computer Brands
WhatsApp Web
Most Beautiful Beaches
Tesla Cybertruck Review
Richest Actors in the World
Explore More
Good Morning Handsome
Best English Songs of All Time
Cricket World Cup Winners
Ways to Say Rest In Peace
Britain’s Got Talent Winners
American Idol Winners
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact Us
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Web Stories
Copyright © 2012-2025. JustWebWorld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.

×

👇 Bonus Reads for You 🎁

WordPress Plugin For Image Slider
7 WordPress Plugins for Image Slider That You Must Know!
Install SSL Certificate on WordPress Website
How to Install an SSL Certificate On WordPress?
How to Deploy An eCommerce Site
How to Deploy An eCommerce Site On WordPress
Selecting the perfect wordpress theme
Top Things to Consider for WordPress Themes