Here’s a clean and sure way that I follow when I migrate a WordPress to a new domain (or subdomain):
- Go and download Interconnect IT’s Database Search & Replace Script here
- Unzip the file and drop the folder where your WordPress is installed (the root) and rename the folder to
replace
(screenshot) - Navigate to the new folder you created in your browser (ex:
http://old.example.com/replace
) and you will see the search/replace tool - In the “search for…” and “replace with…” fields:
- Replace:
https://example.com
(old domain) - With:
http://old.example.com
(new domain)
- Replace:
You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you’re done be sure to remove the /replace/
folder.
Related Posts:
- How can I move/redirect single blog posts from one blog to another?
- 302 redirect instead of 301 after switch to HTTPS
- WP redirects all pages from new domain to old domain
- Redirects from Tumblr to new WP
- About to migrate site to new domain
- W3 Cache redirects to front page when I press purge all caches
- WordPress localhost site always redirect to live site [closed]
- WordPress Domain redirects to different host
- Erase the HTML website and replace it with a WordPress website -301 Redirection
- I get “too many redirects” problem when migrating localhost site
- How to manage around 90k 301 redirects after migration from old CMS
- After migration index page still redirects to old url
- How to redirect non-logged in users to a specific page?
- When I change slug, will WordPress create redirect from the old URL?
- Why is WordPress redirecting from http to https on a local environment?
- Non-WordPress page in subdirectory under WordPress page
- Keeps on redirecting on my development copy
- Password change when the user login first time
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Redirect to custom url when registration fails?
- How to redirect url requests to https? [closed]
- Best way to handle redirects
- Redirect to custom URL after registering from a page with registration form
- WordPress within a subdirectory of another WordPress environment doesn’t work
- wp-login.php — redirect logged in users to custom URL
- WordPress Customizer: custom redirection after closing
- Redirect feed to 404 page
- Does WordPress automatically redirect url without parent slug?
- Hiding WordPress behind IIS redirects
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- Use htaccess to redirect WordPress to static website in a subfolder
- Defining a custom 404 for non-WordPress parts of site
- Redirect all post into some category to url without category
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- What is the right way to redirect all traffic to HTTPS?
- Site loads very slowly (4-5 minute load time)
- Where’s the redirect happening? [closed]
- Snippet for own (gr)avatars
- URL redirect problem
- 503 Service Unavailable error was encountered
- SSL and www to non-www redirection works only on homepage – WordPress
- Regex with HttAccess
- Regex redirect rule for missing part of the path
- Page template that redirects user based on role
- How can i resolve 301 redirection Issue on my website?
- https – too many redirects
- Why does WordPress redirect when I separate wp-core and wp-content?
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- A WordPress site with more than one domain name / Parked domains
- Redirect user if they are not logged in
- Logout without confirmation and SAME window on mobile
- How to redirect a wrong search on my wordpress website to the error 404 page?
- store URL global before we redirect
- Redirect to page for KPI/marketing purpouses
- Will deleting WP’s code in .htaccess cause problems?
- Migrating to Tumblr [closed]
- Parked domain redirect
- Redirect 301 of old urls to wordpress urls
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- How to fix automatic redirects?
- How to redirect wp_login_form to new page after user loged in?
- How to redirect multiple subfolders back to root domain?
- How do I Redirect Tags from Old Joomla Site to New WordPress Site?
- How to redirect user after login to the page called by his first name?
- Redirect After Login Error
- Whenever I try to publish a post in wordpress, I always get redirected to the installation page…why?
- Is it possible to detect if a POST action is for a “Save Post” before the save_post action?
- Disable and Hide WP-JSON
- URL redirection
- Old missing file in wp-content/uploads/ returns a 500 error, how to catch and redirect?
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- How do redirect user back to previous page when on certain pages?
- Relink Drupal Permalinks “…node/XXXX” to wordpress Permalinks (e.g./audio/)
- How to 301 redirect WP posts id “/c/94940894” to permalink with post name?
- WP 301 redirect does not work
- Redirect Image URL to it’s parent post
- Redirect user if they are logged in
- WordPress site not forcing from http to https instead getting redirected too many times
- Redirect not work
- There is 1 redirect
- Redirect HTTP request to HTTPS request
- All new posts serving 301 redirect
- home page redirect loop after update to 4.8
- Moving site from HTTP to HTTPS
- Redirect from plugin created page
- What’s the best way to redirect to a new wordpress website?
- Tag archive page not working
- 301 Redirect only for posts
- Custom redirects with using SQL
- Getting error when trying to redirect WP site to mobile site
- wp_login_form: Redirect to dynamic url according to username
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- Redirect URL while building site
- Redirect a WP to another with all URL
- Creating custom link that redirects to a another link
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- How to disable login and registration pages?