HOW TO : Fix Wordpress Site Url

To change siteurl of wordpress site you have to goto Settings- General - Siteurl . If you mistakenly change site url from https://fonshop.tk to https://wwww.fonshop.tk then the site willnot load.
https://softwareuse2018.blogspot.com/2018/10/how-to-fix-wordpress-site-url_14.html
Not only will it not load you will also loose accesss to your admin dashboard.Let's look how we can solve this problem.

1. Hardset Method

With this method you won't be able to change the siteurl within your admin dashboard.
Goto your hosting provider dashboard , find the file manager, look for a file named "wp-config.php"
then edit this file.Add this line to the file.

define( 'WP_HOME', 'https://fonshop.tk' ); 

define( 'WP_SITEURL', 'https://fonshop.tk' );

https://softwareuse2018.blogspot.com/2018/10/how-to-fix-wordpress-site-url_14.html
where inplace of https://fonshop.tk will be the name of your file

 2. PHP Method

Go to your database manager and login. Find "wp_options" then click on browse.Edit siteurl and home "option_name" to desired value.
https://softwareuse2018.blogspot.com/2018/10/how-to-fix-wordpress-site-url_14.html

3. Relocate Method

As in first method go to  "wp-config.php" . Type
define( 'RELOCATE', true );
just before /*That's all, stop editing!
Go to https://yourdomainname.com/wp-login.php login as usual and change the siteurl and wordpress url in General-settings. Afterwards remove the relocate command .

There you have it. You have access to your wordpress dashboard

0 comments:

Post a Comment