Wordpress wp-admin redirects me to a different domain

后端 未结 2 1443
我寻月下人不归
我寻月下人不归 2020-12-14 18:17

I go to mysite.net/wp-admin. Once I type in my username and pass word it redirects me to a blank page with address of

mysite.co.uk/wp-login.php?

相关标签:
2条回答
  • 2020-12-14 18:30

    Go to your database, and find the table called wp-option, then change the wordpress address and site address to mysite.net.

    You can also add the following lines of code to the wp-config.php-file

    define('WP_SITEURL','http://your-site-url.com');
    define('WP_HOME','http://your-site-url.com');
    
    0 讨论(0)
  • 2020-12-14 18:46

    The above answer didn't work for me. See:

    • https://wordpress.stackexchange.com/a/179788/107311 by James
    • https://codex.wordpress.org/Moving_WordPress

    change "siteurl" and "home" in the database table "wp_options" (through phpMyAdmin or similar)

    0 讨论(0)
提交回复
热议问题