• Resolved wildbug

    (@wildbug)


    I just moved my WP website from my test URL to the active URL (replacing an existing live website). I am confused by the directions in Codex (https://codex.www.ads-software.com/Changing_The_Site_URL). Can anyone help?

    ? I did change the URL in the admin/settings area of WP.
    ? I did go through all my templates in my theme and manually changed the URLs where needed.
    ? I did update my posts using the below (with my actual URLs, of course) in MySQL:

    UPDATE wp_posts SET guid = REPLACE (
    guid,
    'https://exampleoldsiteurl.com',
    'https://examplenewsiteurl.com');

    The directions say to do the same for image links in the post_content table but I am unsure of how to change the above query. Can someone tell me exactly what to put…would it be:

    UPDATE post_content SET guid = REPLACE (
    guid,
    'https://exampleoldsiteurl.com',
    'https://examplenewsiteurl.com');

    I don’t know what “guid” stands for so that makes it confusing to me.

    It also says:

    “2. wp_options: Besides the “siteurl” and “home” items mentioned above, there are other option_value which also need revision, such as “upload path”, and some plugin items (depends on what you’ve installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)”

    I have no idea what to do! Can anyone tell me what else I need to do?

    “3. Do a FULL database search for any items left. MAKE SURE you know what you are changing. and go through each item for possible improper replacement.”

    Again, I have no idea what else needs changing. Help!?

    Where it says:

    Changing the .htaccess file
    After changing the information in your Administration > Settings > General panel, you will need to update your .htaccess file if you are using Permalinks or any rewrites or redirects.

    1. Make a backup copy of your .htaccess file. This is not a recommendation but a requirement.
    2. Open the .htaccess file in a text editor.
    3. Review its contents, looking for any custom rewrites or redirects you entered. Copy these to another text file for safe keeping.
    4. Close the file.
    5. Follow the instructions on the Permalinks SubPanel for updating your Permalinks to the .htaccess file.
    6. Open the new .htaccess file and check to see if your custom rewrites and redirects are still there. If not, copy them from the saved file and paste them into the new .htaccess file.
    7. Make any changes necessary in those custom rewrites and redirects to reflect the new site address.
    8. Save the file.
    9. Test those redirects to ensure they are working.”

    I didn’t see any “Permalinks SubPanel” in my WP-admin. Also, once I made the change to the profile URL, I could no longer access my admin panel anyway. So what do I do now?

    I hope someone can help. I have about a few hours to fix this before my DNS propagates. Help! Thanks to anyone who can help me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Take a look at the comprehensive guide of moving WordPress on the Codex for the official way to move WordPress.

    In the future, use local DNS to make sure everything is working before changing your actual DNS, saves a lot of headaches.

    Thread Starter wildbug

    (@wildbug)

    Ack! My site is now live – took only 2 hours to propogate instead of 24-48! No images are there. Can someone PLEASE help me – I just need to know how to update the image urls properly. Thank you!!!

    Thread Starter wildbug

    (@wildbug)

    “In the future, use local DNS to make sure everything is working before changing your actual DNS, saves a lot of headaches.”

    Thanks for the great tip except I have no idea how to do that and it wasn’t on the Codex directions I was reading. Or if it was, I didn’t understand. I’m not a programmer!

    Can you please tell me the code to use to update the image links? I don’t want to screw up my database.

    Thread Starter wildbug

    (@wildbug)

    I figured it out…for anyone needing the info for updating the images:

    UPDATE wp_posts SET post_content = replace(post_content, 'https://www.old-domain.com', 'https://www.new-domain.com');

    from: https://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/

    My site seems to be running okay even though I never got the answers to most of the above. For now, all is okay though. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help! How to change image URLs/transfer to new URL?’ is closed to new replies.