Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1434954
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 need to create a copy of a WordPress in a local environment.
I have alread done some research and
Included the following line in wp-config.php (at it's start, also tried at the end)
define('WP_SITEURL',''); define('WP_HOME','');
Note sure if these URLs should be different.
Changed
siteurl
andhome
to in database in table [prefix]_optionsI have also checked the .htaccess file and it contain nothing that refers to the online domain.
but it keeps redirecting me to the online domain.
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 need to create a copy of a WordPress in a local environment.
I have alread done some research and
Included the following line in wp-config.php (at it's start, also tried at the end)
define('WP_SITEURL','http://mydomain.local'); define('WP_HOME','http://mydomain.local');
Note sure if these URLs should be different.
Changed
siteurl
andhome
to http://mydomain.local in database in table [prefix]_optionsI have also checked the .htaccess file and it contain nothing that refers to the online domain.
but it keeps redirecting me to the online domain.
Share Improve this question edited Apr 8, 2019 at 15:44 TTT asked Apr 8, 2019 at 15:33 TTTTTT 3291 gold badge4 silver badges17 bronze badges 3- Do you have anything in your htaccess file (redirects) or any sort of redirect plugin? – Alexander Holsgrove Commented Apr 8, 2019 at 15:38
- Good question, I had already checked .htaccess (but forgot it when writing my question), it has nothing that refers to the online domain), regarding plug-ins, I guess I need to ask this to the person who administrated the WP. – TTT Commented Apr 8, 2019 at 15:43
- 2 Possible duplicate of WordPress localhost site redirect to live site – norman.lol Commented Apr 8, 2019 at 17:31
1 Answer
Reset to default 0Clear all rewrite_rules in the wp_options table in your database then open your local website in an incognito browser or clear your browser cache.
本文标签: domainWordpress keeps redirecting me to online site
版权声明:本文标题:domain - Wordpress keeps redirecting me to online site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745614760a2666330.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论