The easiest option would be to install a plugin called better search replace, this will only work for the database. You can then search the database for instances of x and replace with y – x obviously being the URL on the old site and y being the URL of the new website. Be sure to back up the website before doing any of this.
You can also string locator to find any instances of the URL that are hardcoded in to the theme itself.
For future reference, if you want to very easily migrate a website from one website to another, use a plugin called All in One WP Migration, it’s free up to 500mb. It will automatically change all URL references in the database from the site it was exported on, to the new site that the AIOWP file was imported to.
Related Posts:
- How to use relative links on my pages?
- How can I store page ID in a post instead of other selected permalink?
- How to get a page url by a page id?
- Why does WP not use relative links when linking pages?
- Menu Link Redirect Based on Username or User ID
- Social Media Links on homepage – within posts/post loop
- Change website URL without breaking links or images? WP 3.3
- Redirect user if it’s not logged in
- I copied my site to another site but all links point to old site
- Best way to add internal link in widget
- Confusion about how a URL is being parsed
- Automatically append ID to at the end of specific URLs
- why some permalinks adding characters/ruining links
- How to change old permalink?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- How to eliminate permalink prefix in WordPress Multisite
- How to remove /year/month from uploaded medias?
- Get the url of a page template without using the page slug and ID
- How to generate a list of all urls
- Format HTTP links
- Edit permalink for certain pages
- cannot link a external url, present page url acting as parent url
- Can WP give a value a post ID?
- Broken wordpress site, non-working links and no access to wp-admin page
- Bulk append URL (add word to slug)
- How to use page jumps to top of banner and page title?
- How to remove the link of an image on WP 4.2
- Create custom links for excerpts with php dynamically
- How can I see a list of all pages my WordPress site has generated?
- How to make different urls for some tags pages
- Permalinks (don’t kill me) refuses to work..Yes, it results in a 404
- A dash can replace a period in a link, how to fix it
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- Got 404 error when changed siteurl via DB in WordPress
- Can I link to content dynamically from a page to a new page?
- Propper way to set anchor and url param
- Find internal links to post
- rebuilding/ rewriting a url to make it SEO friendly
- Remove link function from oembed image or video
- How to change dynamic link to relevant post
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- After changing permalink settings, everything works fine except for the two most recent posts
- Latin character conversion
- Pretty links for PHP pages above WP /blog directory?
- Permalink / sub-template issue
- Permalink structure as code in back-end?
- What is the issue with our links? It creates a loop
- wp_get_attachment_url not working
- After I migrated a website for WordPress – Saved changes in wordpress settings >> permalinks. Homepage only working, links not working
- Make all internal links relative, or otherwise make a website accessible from multiple domains
- Change media item permalink
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- Remove subfolders from URL
- htaccess or redirect to cloak portion of a link?
- WordPress Permalinks %postname% for RSS2 Feed URL
- generate custom permalink based on a custom field
- How to get wordpress link to fully evaluate when coming from facebook
- Getting links to work the same on development and production
- Change author slug and functionality
- Setting up two separate blogs while using WordPress as a CMS
- get permalink and append it
- Moving local wordpress page to a real server subdomain broke my permalinks?
- next_posts_link URL does not include name of custom post type
- Media Gallery Images – safe to change permalink?
- WordPress disallows changing page to a specific permalink
- Custom permalink leads to index page
- 404 when going to /blog
- WordPress keeps giving me the wrong permalink
- Permalinks 404 error with HTTPS host
- Rewriting single post url; add_rewrite_rule problem?
- WordPress permalink prefix
- Hierarchy of Subcategories on Permalink (bug?)
- RSS feed link on archives page not working
- Order custom post type posts by custom field with pretty URL
- post permalinks with dot in url don’t resolve to correct page template
- How are WordPress Page URLs affected by permalink settings?
- Home page Pagination – Other pages do not redirect to home page template
- WordPress switch servers
- WordPress Posts forced to load as Uncategorized
- replicate url permalink after migrating to wordpress
- I need to change the attribute of the isPermaLink guid in the WordPress RSS feed – from false to true
- Modify post slug before saving
- Changing permalink for blog posts, current structure www.website.com/blog-post, change to, www.website.com/blog/blog-post
- Permalink refresh, the good, the bad, etc. What is best?
- Cannot publish posts or pages when I change permalink structure
- Author Meta in Author URL Link
- Remove Permalink of certain posts
- How to find a page in admin based on it’s permalink
- where is the media permalink info stored in database?
- Category-dependent custom permalink
- Pretty permalinks (again)
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Passing user defined variable into get_permalink
- Custom permalink structure for custom post type results in 404
- Change permalink when page category selected in admin
- Custom rewrites for pages and categories
- How to change my URL on intranet
- Permalinks get lost periodically
- how to add permalink/slug to wordpress custom link menu item