If you have access to the wp-config.php on the server, you can add the following constants that will override the database. This does not save the settings but will at least get you viewing the site again.
define( 'WP_SITEURL', 'url_to_wordpress_core_files' );
define( 'WP_HOME', 'url_to_wordpress_front_end' );
There is also a RELOCATE
constant that will make the changes to the database – see the instructions here on how to do that.
Hope this helps!
Related Posts:
- Lost WordPress website access after changing URL [closed]
- 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()
- Use a template file for a specific url without creating a page
- Does WordPress keep track of a post’s URL history and provide automatic redirects?
- Override default url for author pages?
- 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
- Multiple endpoints to same page
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Rewrite default post type
- Clash of the rewrites
- How to prevent redirection to max 2147483647 for larger values of the page query variable?
- How to remove “http://” When Echoing URL?
- Will references to ugly links automatically redirect to their pretty url permalink?
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- how to add prefix to post url structor only
- Why does wordpress still strip my query var?
- Appending numbers to url do not break the link
- Hijacking the URL for filtering
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- custom htaccess rewrite rule for page
- Passing & Reading URL Parameters with URL re-writing
- 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
- Woocommerce different URL for every table placed in the restaurant
- Change default URL of image attachment
- Prevent WordPress from automatically correcting URLs
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Display content according to current URL
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- 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
- Allow single quote in URLs
- Changing WordPress blog name and web address
- 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
- Custom URL rewrite to specific page template
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Define orderby in url
- Alias ‘wp-content’ directory to something shorter (framework?)
- WordPress .htaccess – route other URLs to another app
- Is there a ‘rake routes’ for wordpress?
- Remove site root trailing slash
- open all .docs in word online
- Remove / from www.example.com/ [closed]
- How to add custom variable in url without redirect?
- Adding pretty query parameters
- Changing RSS feed URL structure
- Creating a dynamic URL structure
- How to change the main site url on a multisite installation (network)?
- Append a query string to the end of every URL
- 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 disable URL rewriting for specific URLs?
- How to building pretty URLs to reflect category hierarchy?
- Adding special characters to slug?
- 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
- Rewrite custom post type URL parameters
- Wildcard forward all posts and pages with few exceptions
- Help with Rewrite Rule for Custom Post Type with Query String
- Translate custom post type and taxonomy slug in URL?
- A clean custom rewrite rule for weekly archives
- Right url for custom post type
- Preserve old website URL structure after migrating to WordPress
- I want to add a new tag to WordPress URL permastruct
- Change pagination url format
- 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?
- React Router with WordPress
- 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
- Changing URL scheme, mod_rewrite not helping
- ngnix Url rewrite doesn’t work
- Understanding the query string after .htaccess rewrite
- Is WordPress API visible from PHP file called in htaccess
- Rewrite /category/cars into /topics/cars
- URL renaming issue
- Removing “www” from a site URL