Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress wp-admin redirects me to a different domain

Tags:

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

like image 212
cyberscientist Avatar asked Dec 10 '11 12:12

cyberscientist


People also ask

How do you fix WP admin redirect WP admin to another page?

Clear Your Browser Cookies and Cache The quickest way to solve the WordPress login redirect issue is by clearing your browser cookies and cache. WordPress uses cookies to store authentication data. Sometimes your browser might retain old files, resulting in a redirect loop when you try to log in to your site.

Why is my domain redirecting to another site WordPress?

In most cases, the redirection issue is caused because you installed themes or plugins from an unknown source. So, make sure you only install the plugins and themes from a trusted source.

How do I change my login redirect in WordPress?

First, select the 'Username' condition from the 'Rule Condition' drop down and choose the username from the drop down list. Then, you can enter the URLs you want to redirect the user to on login and logout. Make sure to click the 'Save Rule' button to save your changes.


1 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'); 
like image 114
bingjie2680 Avatar answered Sep 21 '22 02:09

bingjie2680