Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1435853
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 6 years ago.
Improve this questionI have changed the Site URL and Home URL of my website, after that I am not able to access it. The message appearing on the screen is "this site can’t be reached"
How do I get the access back?
Closed. This question is off-topic. It is not currently accepting answers.Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 6 years ago.
Improve this questionI have changed the Site URL and Home URL of my website, after that I am not able to access it. The message appearing on the screen is "this site can’t be reached"
How do I get the access back?
Share Improve this question edited Mar 28, 2019 at 19:33 JayTh 235 bronze badges asked Jul 26, 2018 at 12:20 Mona KandilMona Kandil 51 bronze badge1 Answer
Reset to default 1If 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" is the correct location of your site.
define('WP_HOME','http://example');
define('WP_SITEURL','http://example');
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/path', 'http://spankingnew/otherpath' )
WHERE option_name = 'home' OR option_name = 'siteurl';
(NOTE: make sure to change 'http://oldsite/path' with your correct URL and 'http://spankingnew/otherpath' with your edited URL in the query)
本文标签: url rewritingLost WordPress website access after changing URL
版权声明:本文标题:url rewriting - Lost WordPress website access after changing URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745648472a2668279.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论