Community Forums › Forums › General Genesis Framework Discussions › Migrating Photos to a new server
Tagged: dns, media, photos, site migration
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by
AnitaC.
-
AuthorPosts
-
June 11, 2021 at 3:51 pm #504242
radiomogul
ParticipantI am moving one of my WP sites to the same server as my main website (don't ask why they are on two different servers.)
I exported the content to the new server. It literally has the URL
new.xxxmyserver.com where the old site is xxxmyserver.com
I noticed that all the photos are uploaded with the new.url followed by /wp-content/uploads/2021/03/xxx.jpgOnce I switch the DNS to point to the new server and remove the "new.xxx" will the relative urls for the media revert to the xxx.com?
http://srnbroadcasting.comJune 11, 2021 at 8:18 pm #504243AnitaC
KeymasterIt depends on how it was set up. If they are two separate websites moving them from one server to the other doesn't change the domain name. They will still be two separate websites.
Need help with customization or troubleshooting? Reach out to me.
June 13, 2021 at 8:05 am #504246radiomogul
Participantthis was setup as a subdomain, because I'm already paying for a hosting plan for my main website. But I had two servers. This way it's all in one place.
But since it was small without a ton of data, I used the WP Import tool to simply export a copy from the old server to the new site.
Then we can rename it from new.xyz.com to simply xyz.com
-my questions is - will all the relative URLs
change, even the uploaded photos?June 15, 2021 at 7:40 am #504257AnitaC
KeymasterNo, merely changing
new.xyz.comtoxyz.comwill not change that.If you have content in the site that's
new.xyz.comand you uploaded the images toxyz.com- then in the body of the contentnew.xyz.comcould need to be changed manually, or you would do a Search/Replace via a plugin that says, "look fornew.xyz.comand replace that withxyz.com. But those images need to be in the correct file folders onxyz.comfor the images to display.
Need help with customization or troubleshooting? Reach out to me.
June 16, 2021 at 9:05 am #504263radiomogul
ParticipantWhen I look into the wp-content file (because I want to backup the photos in case something goes wrong, I see about 50 different temp files that are type text/x-generic. Can these be removed?
June 16, 2021 at 12:49 pm #504264AnitaC
KeymasterI can't say anything about those types of files. That's more a WordPress related question and not theme related, as it the entire subject matter really. You just have to make sure that the mapping of the URLs inside the pages/posts still lead over to the destination of their respective images.
Need help with customization or troubleshooting? Reach out to me.
-
AuthorPosts
- You must be logged in to reply to this topic.