If you have a cPanel and have an access of phpMyAdmin on your host, then find your DB, check the “siteurl” and “home” fields are correct in wp_options Table.
Or
Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Or
If you have a cli access, then login into your Mysql, select a database and run below query
UPDATE wp_options SET option_value = replace( option_value, 'http://oldsite.com/path', 'http://spankingnew.com/otherpath' )
WHERE option_name="home" OR option_name="siteurl";
(NOTE: make sure to change ‘http://oldsite.com/path‘ with your correct URL and ‘http://spankingnew.com/otherpath‘ with your edited URL in the query)
Related Posts:
- How to retrive previous Domain URL in Wp
- Getting the Site URL Including the Front Base
- redirect 301 old url to new url
- How to rewrite url wordpress?
- wordpress url correction
- Redirect htaccess [closed]
- Two sets of url one content?
- Get logged in username in wordpress url
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- WP returns to domain root instead of siteurl
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?
- What’s the difference between home_url() and site_url()
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- Using custom/dynamic “slug” for a page
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- How to remove “http://” When Echoing URL?
- Will references to ugly links automatically redirect to their pretty url permalink?
- Why does wordpress still strip my query var?
- Appending numbers to url do not break the link
- Hijacking the URL for filtering
- custom htaccess rewrite rule for page
- Tricky URL rewrite with custom values in url
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- Add_query_arg + two times the same argument?
- WordPress 404 unless there is a space in url
- Change WordPress comments url / word
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- Migrating a page to be an article
- How to get “extended” path info from URL in a plugin
- How to check current URL for endpoint in a template file?
- How to perform a query at the URL?
- add_rewrite_rule not working for language specific characters
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Define orderby in url
- WordPress .htaccess – route other URLs to another app
- Is there a ‘rake routes’ for wordpress?
- Remove / from www.example.com/ [closed]
- Changing RSS feed URL structure
- add_rewrite_rule fro html to another url not working
- Preserve Domain Alias
- WordPress redirects non-existing url to existing ones – how to disable
- How to building pretty URLs to reflect category hierarchy?
- How do I retain url parameters the entire time a user browses my site?
- How do I display only the parent page in the url
- Wildcard forward all posts and pages with few exceptions
- Help with Rewrite Rule for Custom Post Type with Query String
- A clean custom rewrite rule for weekly archives
- I want to add a new tag to WordPress URL permastruct
- Add language prefix to permalinks
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- How to redirect large amount of URLs?
- How to achieve my custom post url structure?
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Per Page Permalink Structure for Page Post Type
- ngnix Url rewrite doesn’t work
- Understanding the query string after .htaccess rewrite
- Rewrite /category/cars into /topics/cars
- URL renaming issue
- Removing “www” from a site URL
- Adding a query string to only one page url
- Showing my server ip in source code for several links not for all links
- Replace “http://localhost:8888/” by website URL in WordPress
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- Weird characters behind every single link and images
- How to use wp rewrite to hide form action url?
- change the url in wordpress
- how to move another machine or server without dealing with IP
- How do I get posts to appear at mydomain.com/blog?
- get variable from url?
- remove archive from url :: marketpress
- WordPress rewrite front page url
- add_rewrite_rule with optional parameters
- How to change search page url so that it still returns a page when there’s no search query specified?
- SEF add_rewrite_rule & add_rewrite_tag not working
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Problem building an url with argument
- Multiple permalink with and without category for same post
- There is how to change url domain on some posts?
- How do I rewrite URL that has custom parameter
- Param causing 404
- Homepage cannot be found
- How to change URL of my pages?
- Get custom posts by segment of the URL
- Use Parent Pages for URL Structure without Landing Page
- Moving Site: Is Re-downloading Files After Changing URLs necessary?
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Error 404 wordpress redirecting URL
- Remove Page Slug from URL
- How to create short urls for sharing and downloadable content?
- How to stop WordPress creating URLs that don’t exist
- Rename page URL
- Can I exclude a single URL from a rewrite plugin?
- redirect word-press page with page values
- Remove url parameter using wordpress