• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

Move a WordPress Site to New Location or Domain

July 11, 2012 by Pat Fortino

WordPress is pretty easy to use most of the time, but if you ever have to move a WordPress site to a new location or domain, get ready for some pain. It’s NOT easy and it’s NOT intuitive. 

WordPress, for reasons I cannot explain, writes a full URL for all links and images in the database. For example, if you link to another WordPress post, the link gets written in the database as follows: http://mysite.com/blog/my-post. Furthermore, WordPress writes all image links as a full URL too; eg, http://mysite.com/blog/wp-content/uploads/2012/01/my-photo.jpg.

The problem with this method is that if you move the location of your WordPress site to another folder, or if you change domain names, all your links to posts and images will still point to the old location or domain name. Essentially, your site will be broken. (The domain name and site path should be stored in the wp-config file, not in each file or post link, but that’s another story.)

If you are moving your WordPress site to another location or domain name:

  1. Make a complete backup of all WordPress website files and the WordPress database. If you don’t know how to do this, then hire a professional to do it for you. No kidding: you could destroy your site beyond recovery.
  2. Go to the following URL first and read the section titled When Your Domain Name or URLs Change: http://codex.wordpress.org/Moving_WordPress
    Pages: Page 1 Page 2 Page 3

Tagged With: content management system, Website Design, WordPress, Comments are closed. If you have information to share, contact me here.

Previous Post: « jUpgrade Fails with Joomla 2.5.6
Next Post: Joomla Redirect index.php to root »

Related

Primary Sidebar

Blog Categories

Call Today

Get a Free Quote

303-907-6133

Subscribe to News

News about WordPress, WooCommerce, & Technology

What’s New

  • WPForms Not Sending Notifications
  • Add Terms and Conditions WooCommerce
  • Fix WordPress AMP Validation Errors
  • Use the Classic Editor with Gutenberg Block Editor
  • Add a Message at Top or Bottom of WooCommerce Checkout Page
  • How to Link to a PDF in WordPress

Find Us On…

  • Facebook
  • LinkedIn
  • RSS

Call 303-907-6133 Email

© 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top