Easiest way to redirect blog links?

Hi everyone I moved my blog over from another wordpress site using the wordpress export : www.treespacestudio.com/blog to my current x-theme site : www.amytwon.com/travelogue.

I panicked to see none of the links within the posts are changed and I’m trying to figure out the easiest way to redirect those links to the correct ones on the new site.

I’ve read that there are some redirect plugins available, what’s the best one to use with X theme? Do I install the redirect in the old site or new site?

Oh also one more thing, I just noticed the imported blog posts are not mobile friendly :frowning: How can I make them mobile-friendly without trying to put them into cornerstone? UPDATE: Even cornerstone-created posts are not responsive(see latest post on creative solitude). Please advise.

Help much appreciated, thanks!

Amy

Hi Amy,

To update the URLs in http://www.amytwon.com, you can use the Better Search and Replace plugin.

You will have to search for http://www.treespacestudio.com and replace all of its occurrence to http://www.amytwon.com.

Please note that before doing a search and replace to keep a full backup of your site.

As for the responsive issue, kindly update the URL first as this might solve the issue since there might be resources that are still referenced from the previous domain.

Let us know how it goes.

Hi Jade thank you for this. I installed better search and replace but now trying to figure out how to solve this issue :
My old blog had a permalink structure with dates in it : http://www.treespacestudio.com/blog/2016/04/28/secret-world-artist-not-magic/ and the new post URL is this : http://www.amytwon.com/secret-world-artist-not-magic/ (no dates).

How do I search and replace since the dates will all be different for different posts?

I’ve posted this question on the forum for that plugin as well but if you have an idea, please let me know, thanks!

The other problem I’m having is that during the native wordpress blog posts import, it didn’t bring in all the attachments (images). They are still linked to the old site though they do appear. I don’t see any of these images in the current x theme media library.

I’m not sure why this is the case because I selected the option to import attachments/media, etc. I’m afraid to run search and replace because it might replace all these media source urls and since they are not in the current media library, it would be dead links.

Is there a way to fix this right now?

Thanks!

Hello There,

Thanks for writing in!

Do you want to have the same permalink url as with your old blog does? If that is the case, then you can change your permalink settings to date in Settings > Permalinks.

The search and replace should be done. Please use this keyword: http://www.treespacestudio.com/blog/wp-content/uploads/ and replace it with http://www.amytwon.com/wp-content/uploads/

How did you migrated your old site? Did you also moved the images? I would highly recommend that you used 3rd party party plugin to clone your site so that all issues could have been prevented.

Please let us know how it goes.

Hi Rue,

I thought I had moved the images by selecting ‘download file attachments’ but that didn’t happen for some reason. I’m working on moving all media now so hopefully this will solve the media part of it. UPDATE: Moved (most of the) media/images over, however I ended up with lots of ‘failed to import media’ errors on quite a number of files. Any idea what might be causing this?

The search and replace you provided is for the MEDIA only right? That would point all images to the new uploads folder?

Do you want to have the same permalink url as with your old blog does? If that is the case, then you can change your permalink settings to date in Settings > Permalinks.

Per your question above: no I don’t want to change the permalinks to the old version with the dates because the way the new one is structured is cleaner. How do I search and replace this when the dates are no longer in the new URL/permalinks?

Thanks!

Hi there,

Yes, it’s for the media only. But to make sure all assets URL are replaced, then replace this http://www.treespacestudio.com/blog/wp-content/ with this http://www.amytwon.com/wp-content/

For the URL with dates, you have to manually replace them. It’s a bit complex using regex search and replace, it could destroy your existing data.

Thanks!

Hi there, thank you for the reply!}

I know I said I don’t want the new permalinks to have dates, but for the sake of NOT manually having to change all old blog links, would I be able to change the current blog permalink from not-dated to the dated version and then after a search and replace, change it BACK to the non dated version?

Will I run into any problems with this?

Hi there,

That will be a complicated process that I doubt if it is possible with search and replace plugin. I strongly suggest that you do not do that on a live site.

Try the method you mentioned by cloning your website to a staging server and do the test there. Even if you succeed have a complete backup of your website beforehand just in case.

Thank you.

Hi Christopher can you refer me to x-theme compatible resources for cloning and recommended staging servers? I haven’t had one before, where do I start? Thanks much!!

Hello There,

Thanks for updating in! There’s many different plugins you can use to migrate, in our knowledge base article (https://theme.co/apex/forum/t/cornerstone-migration/126), we only covered using WP Migrate DB, but here’s some other popular alternatives.

Or even check the best rated and popular plugins in the repository:
https://wordpress.org/plugins/search/migration/

Hope this helps.