I have a development site as a subdomain of my main site, so I deal with this when I copy data from the live site to the development site to obtain a current version of the development site.
First, visit http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change like cybnet recommended. Once you have changed the wp-config files as described in the link, visit https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ and download their php script which will replace the orl urls with the new one.
Related Posts:
- Importer failed to import posts as format “day and name”
- Imported posts using wrong domain name
- Getting the Site URL Including the Front Base
- How to get rid of index.php?
- Getting links to work the same on development and production
- How to bulk edit image url in featured image and product description?
- Permalinks settings
- WordPress suddenly changed all links to example.com/example.com/
- home_url on IIS missing permalink index.php
- Permalink not changing according to post type
- Got 404 error when changed siteurl via DB in WordPress
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove index.php from URL (WP installed in subdirectory)
- How to change URL of my pages?
- How to shorten the Permalink after WP>WP blog import?
- Remove index.php from URL
- permalinks url with woocommerce
- Changing permalinks gives me 404 errors on nginx
- Strange permalink issue: can’t rename /company-2/ to /company/
- Using $_GET variables in the URL?
- Move WordPress to subdirectory, keep ALL URLs
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- How can I include a query string with get_permalink
- WordPress Export Import Site Navigation Menu
- Permalink: postname EXCEPT for blog
- %tag% in permalink not working
- How to identifty post from its URL in 404 page?
- Rewrite rule never matching
- How to get blog id from permalink?
- Custom url for a single page
- Rewrite-Rules not working on a vhost, everything goes to index.php
- Date archive permalink modification
- Using ‘Primary Category’ in URL
- Changes to permalink structure results in 404 error for all pages other than home
- Filter string like a slug
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- How much of my site can I recover from public_html?
- I need a custom permalink for my website
- How to link to “most recent” document in the Media Library?
- Permalinks not working
- Problem with wordpress links on a live site
- Why wordpress multisite root site showing blog prefix by force?
- Permalink change redirects by WordPress [duplicate]
- page nested 3 levels deep shows 404
- Removing /author/ slug from URL gives 404
- changing permalink for custom template in posts of a certain category
- Force wordpress to display page with same url structure as categories
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- is there a way to add the post URL to the results of fselect facet in Facetwp plugin?
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- Redirect /%year%/%monthnum%/%day%/%postname% [closed]
- How to get the full URL of the current page and change domain of it?
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- How to get functions.php work with postname permalink?
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- get_permalink returning site home url instead of the url of slug being passed
- Host frontpage via example.com and everything else via example.com/blog
- Dynamic Custom Permalinks
- 404 error using Meta for Permalink rewrite
- How to handle paging/pagination with a custom permalink?
- Environment independent way to link to certain pages on frontend
- Custom URL rewrites for templates
- Relative links in Gutenberg
- Why is my RSS feed not working?
- Convert single apix to dash in permalinks
- How to remove the link of an image on WP 4.2
- How to get raw unwritten querystring
- WordPress Permalink
- Export WordPress from one domain to another domain
- Can not manually change the permalink of a post in the EDIT secion
- How to change permalinks to show categoryname/post-name?
- Post with no tag permalink problem
- What permalinks do I use in the redirection
- WordPress’ «post name» setting broken
- Keep wordpress basic permalink preferences
- .htaccess to redirect to a wp page
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- How do I use the same Tag slug for different Tags?
- Replacing + sign to – in wp Search Permalink
- Permalinks are not working in WordPress
- CPT links error: each one links to next one further along in the list
- Woocommerce product page 404 not found
- WordPress and NGINX – permalinks are not working with ending slash
- Get value from URL with different types of parameters
- a way to support totally different url structure
- How to hide slug numbers with htaccess
- Permalink not working
- When using number in url it is redircting to same page but when using character it redirects to 404
- Once redirected by Rewrite rules, how can WordPress know the page?
- Webdav with permalink in WordPress v3.3.1
- Why not working /%postname%/ with ajax serverinterval?
- Custom Permalink Base
- Appending a variable to RSS link url
- Search results highlight breaks my read more link
- How to get WordPress to NOT alter the permalink structure when adding a static page?
- Blogroll import/export with categories and descriptions
- Permalinks, how to show them in post
- Can I specify template to use with the_permalink?