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
- Why is “/page/2/” not working?
- Why would Numeric permalinks work, but %postname% won’t?
- Passing variables through permalink structure
- What is the action or filter for changing permalink in Edit Post/Page?
- How to get wordpress link to fully evaluate when coming from facebook
- Is using %postname% for permalinks really that bad for performance?
- How to tranform Headlines into linkable permalinks?
- Changing search URL to something other than “search”
- Changes to .htaccess not updating the file (old rules still take effect)
- article pages not displaying on local instance of wordpress site
- Create unique alphanumeric ID on wp_insert_post
- Permalinks not working with Vagrant
- Possible to remove taxonomy from permalink if uncategorized?
- Files rendering adding “.x95527” before file extension [closed]
- Custom permalink leads to index page
- wp not making CPT permalink / slugs unique
- Mirror content based on URL slug
- Slugs Disappeared Leaving 404s – Quick way to repopulate?
- Path to Pages Resolves to Archive instead of Actual Content
- permalink %year% of pre-written posts to be published next year, in the mysterious future (*)
- Permalink slug no longer editable when using post_type_link filter
- Remove some rewrite rules in wordpress
- How to change permalinks
- How to get rid of an extra middle part my permalink
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Redirect after permalink changes
- replacing post ID by custom post name in url
- Change type of permalinks on TinyMCE link dialogue
- Problem with special character WordPress
- Permalinks and page store
- Change pemalink for one single post without redirect
- Add .html permalink to post if specific category
- Strip subcategory base from URL
- rewrite based slug standar post wp
- Edit Post Permalink option removed, looking for possible causes
- Site Tagline ended up in permalink
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- Pretty Filter URL
- Add URL to selected post in meta box
- Prevent guessing slug
- Pretty permalinks to work for lighttpd webserver?
- Pages included in another page and duplicate content issues for SEO
- Customize category permalinks
- WordPress archive posts returns user to homepage
- permalinks url with woocommerce
- Blog url disappears
- Remove parent product category slug from product_cat url woocommerce
- I want to change my permalink structure