Help! How to change image URLs/transfer to new URL?
-
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.
- The topic ‘Help! How to change image URLs/transfer to new URL?’ is closed to new replies.