admin管理员组文章数量:1310081
I've moved a Wordpress site from one domain to another. I have changed the siteurl
and home
options in the wp-options
table, added this tags into wp-login.php
file:
update_option('siteurl', '' );
update_option('home', '' );
and I've tried to rewrite the URL using these tags in the wp-config.php
file:
define('WP_HOME','');
define('WP_SITEURL','');
When I enter to the address bar, I'm redirected to my old domain. But
/wp-admin
is normally accessible. In the settings I can even see the WordPress Address (URL)
and Site Address (URL)
with the correct values.
Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.
(Sorry for my English mistakes.)
I've moved a Wordpress site from one domain to another. I have changed the siteurl
and home
options in the wp-options
table, added this tags into wp-login.php
file:
update_option('siteurl', 'http://my.new.domain' );
update_option('home', 'http://my.new.domain' );
and I've tried to rewrite the URL using these tags in the wp-config.php
file:
define('WP_HOME','http://my.new.domain');
define('WP_SITEURL','http://my.new.domain');
When I enter http://my.new.domain
to the address bar, I'm redirected to my old domain. But http://my.new.domain/wp-admin
is normally accessible. In the settings I can even see the WordPress Address (URL)
and Site Address (URL)
with the correct values.
Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.
(Sorry for my English mistakes.)
Share Improve this question asked Mar 28, 2016 at 12:39 jendajenda 1611 silver badge6 bronze badges 1 |1 Answer
Reset to default 5As Sumit pointed out, the problem was in the old browser cache. The solution was to clear browser cache (or just add a query string after the address: http://my.new.domain/?random_string
).
Thank you.
本文标签: redirectRedirecting to old domaintried everythingnothing works
版权声明:本文标题:redirect - Redirecting to old domain, tried everything, nothing works 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741854822a2401280.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
http://my.new.domain/?random_string
– Sumit Commented Mar 28, 2016 at 12:49