[ad_1]
WordPress site owners would like to change domain name from
thesite.com
to
site.com
Pretty sure this will break the URL’s of all posts.
Anyway around this??
Thanks
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
You should be able to just change the URL in settings, and your host, but if there is issues do a search and replace in the database with either a plugin or myphpadmin. Also warm them about SEO implications from changing domain names.
“*Pretty sure this will break the URL’s of all posts.*” – Use the Better Search Replace plugin to bulk change URLs after a domain name change.
Use Google’s Change Of Address tool when changing domain to move your SEO juice across to the new domain [https://support.google.com/webmasters/answer/9370220?hl=en](https://support.google.com/webmasters/answer/9370220?hl=en) (not doing this correctly means you are essentially starting from scratch)
You can use the WordPress CLI
`wp search-replace ‘https://oldurl.com’ ‘https://newurl.com’ –skip-columns=guid `