Wordpress wp-admin redirects me to a different domain

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?redirect_to=http%3A%2F%2Fmysite.net%2Fwp-admin%2F&reauth=1

I own both domains mysite.co.uk and mysite.net. in fact mysite.co.uk redirects to mysite.net

Answers


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');

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

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


Need Your Help

Is it possible to use JSF to build clean CSS layouts without using tables?

html css jsf

I want to look at using JSF but I'm put off by what appears to be the liberal use of html tables for layout by many components.

rails-rspec error cannot load such file -- rspec/core/formatters/progress_formatter

ruby-on-rails-4 rspec-rails

I've broken my rails-rspec. I switched to a different gemset to run a 3rd party test. When I returned to my 2.3.0(default) gemset, I had the following errors.