admin管理员组文章数量:1410717
we have a wordpress installation running on address www.example. We wanted to have a development site for it as a subdomain, so we created a subdomain dev.example on cpanel. Created a duplicate of its database and replicated the files to the directory root of dev.example. Then modified wp-config.php to point to the duplicate db. Now the problem is, when we try to access dev.example/wp-admin, it redirects to .php?redirect_to=https%3A%2F%2Fdev.example%2Fwp-admin%2F&reauth=1
Anybody can help me with this?
we have a wordpress installation running on address www.example. We wanted to have a development site for it as a subdomain, so we created a subdomain dev.example on cpanel. Created a duplicate of its database and replicated the files to the directory root of dev.example. Then modified wp-config.php to point to the duplicate db. Now the problem is, when we try to access dev.example/wp-admin, it redirects to https://www.example/wp-login.php?redirect_to=https%3A%2F%2Fdev.example%2Fwp-admin%2F&reauth=1
Anybody can help me with this?
Share Improve this question asked Aug 8, 2013 at 20:21 Bryan CSBryan CS 1231 gold badge1 silver badge5 bronze badges 3 |2 Answers
Reset to default 4Based on Charles Clarkson's comment, I directly changed the siteurl
and home
options in the wp_options
table to be https://dev.example/
and this fixed the problem for me.
I created a subdomain with its own database on our server, just under our main (https://example/newsite). It had been working fine for one month. During some API testing for integration the "newsite" wp-admin kept redirecting to the main site's login whenever you tried to access the "newsite" login. Checked the newsite's database (in table wp-options)and sure enough, the siteurl and home had been changed to https://example , I changed them both back to https://example/newsite and everything works find now.
本文标签: Wordpress subdomain wpadmin redirects to main domain
版权声明:本文标题:Wordpress subdomain wp-admin redirects to main domain 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745019546a2638047.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp_options
table. – Charles Clarkson Commented Aug 8, 2013 at 20:25