Moving a site from localhost to production

I have read and followed several of the suggestions/post for moving a site from localhost to production. Currently the images attached to some of the pages still are trying to get them from localhost. if you could just tell me what field(s) in what table(s) to change the url(s) in then I can do it manually. I’ve used the Velvet Blues Update URL unsuccessfully. It finds links in the page content and URLs in attachments, but some pages are still looking for them at localhost. motojk.com is the site… you can see the errors in development console (Chrome). Thanks

Hello Charles,

Thanks for asking. :slight_smile:

On my end website and it’s links are working fine. I don’t see any error message in dev tools also. Probably you can try to clear cache and see how it goes. You can also take a look at following article to update the URL’s in database:

As an input from my side, probably you can update the Red background color that’s there on the buttons with the Red color that’s there on the Navigation, so that the color combination is uniform across the website.

Thanks.

Right, I found that the merging tools were not working on wp_postmeta. So I ran this sql statement on it and fixed the issues.
UPDATE motojk.wp_postmeta SET motojk.wp_postmeta.meta_value = replace (motojk.wp_postmeta.meta_value , ‘localhost’ ,‘motojk.com’).

Wondering why you all use absolute urls for referencing media in the wp_postmeta table?

Thanks

Hello Charles,

It is not the theme but WordPress itself is using the absolute urls for the media. You should not be having this issue in the first place if the plugin you used for the migration handled the urls properly. I assumed you must have migrated the site manually.

The duplicator plugin handles best of all other plugin when migrating a site. This links has a great review which plugins works best. You might need this in your next project:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.