You’ll need to fix the URLs in the database. Although you can do it with MySQL commands, the easiest way I’ve found is with the “Better Search and Replace” plugin. Easy to use, and works.
https://wordpress.org/plugins/better-search-replace/
Of course, backup your database first. But it works quite well.
Related Posts:
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- Rewrite default post type
- redirect 301 old url to new url
- Changing WordPress blog name and web address
- How to rewrite url wordpress?
- How do I retain url parameters the entire time a user browses my site?
- How to achieve my custom post url structure?
- wordpress url correction
- Redirect htaccess [closed]
- Two sets of url one content?
- change the url in wordpress
- Get logged in username in wordpress url
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- how to move another machine or server without dealing with IP
- database not responding on localhost
- loading images, css and fonts from site url
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- WP returns to domain root instead of siteurl
- Homepage cannot be found
- Error 404 wordpress redirecting URL
- How to retrive previous Domain URL in Wp
- Lost WordPress website access after changing URL [closed]
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?
- Masking wp-content/themes/name/images to just images directory using htaccess
- Using custom/dynamic “slug” for a page
- How do I remove a rewrite rule?
- Use subdomain for certain urls
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- Can I call a custom plugin with a direct URL
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- how to use a different domain/subdomain for authors/catagories on single site?
- Query Vars for the Homepage?
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Using WordPress with Apache behind an nginx reverse proxy
- How do i change the search permanent links
- add_rewrite_rule() not playing nice with child pages
- Custom rewrite rules are sending everything to index.php
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- How to Change Author Posts URL
- Add .html extension to only one page in my WordPress site
- Migrating a page to be an article
- Multiple Permalinks for Same Post
- How to perform a query at the URL?
- url rewriting for most recent post
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Remove “/page/1” from the URL
- hard flush_rewrite_rules() not regenerating .htaccess
- Nginx rewrite rules
- Use custom template on certain URLs
- Rewrite Rules Are Redirecting and Not Passing VARs
- custom template rewrite
- add_rewrite_rule fro html to another url not working
- Adding rewrite rules directly to .htaccess file
- How do I redirect to a non-www version and make it the default URL?
- WordPress redirects non-existing url to existing ones – how to disable
- How to create a profile page for specfic / custom user role members?
- Can I change default registration link (without htaccess)?
- A clean custom rewrite rule for weekly archives
- I want to add a new tag to WordPress URL permastruct
- QSA Rewrite Rule
- rewrite wordpress page url for seo friendly query strings
- ReWrite rule for files of a previously standalone blog moved to network
- Fixing custom rewrite rule
- URL renaming issue
- Best way to trigger rewrite rules
- virtual page using url parameters to solve facebook sharing issues
- force www rewrite if wordpress put in a folder
- Custom Structure permalinks error 404
- WordPress Rewrite rule is not working
- change url for portfolio image
- Use URI suffix as parameter and ignore when resolving page
- add_rewrite_rule with optional parameters
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Redirect empty search to another page
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- WordPress URL redirect and replace ? question mark
- Rewrite rule not working, suspect redirect string
- WordPress index in subdirectory, blogposts in root directory
- Rewrite Url using .htaccess or hook
- url restructure or rewrite having $_GET variables
- How to use a RewriteRule to change endpoint url
- Custom taxonomy Rewrite Rule
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- .htaccess RewriteRule to include post type and taxonomy
- What’s the best approach to do this?
- WPNetwork with custom URL Rewrite rules
- WordPress index page is returning 404 and admin page requires /index.php in url
- Stop wordpress to redirecting home page if no page found
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- URL rewrites af
- redirect word-press page with page values
- permalinks url with woocommerce
- Hide / rewrite download link
- Rewrite rule to simulate page hierarchy results in 404