Title: Odd redirect when logging into wp-admin
Last modified: August 17, 2021

---

# Odd redirect when logging into wp-admin

 *  [kerrya4446](https://wordpress.org/support/users/kerrya4446/)
 * (@kerrya4446)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/odd-redirect-when-logging-into-wp-admin/)
 * When I go to the main page of my WordPress site it loads normally.
 * But when I go to the wp-admin page I get error 404.
 * The url reported in the browser is:
 * [https://mydomain.com/~mydomain/wp-login.php?redirect_to=https%3A%2F%2Fmydomain.com%2Fwp-admin%2F&reauth=1](https://mydomain.com/~mydomain/wp-login.php?redirect_to=https%3A%2F%2Fmydomain.com%2Fwp-admin%2F&reauth=1)
 * instead of [https://mydomain.com/wp-login.php?redirect_to=https%3A%2F%2Fmydomain.com%2Fwp-admin%2F&reauth=1](https://mydomain.com/wp-login.php?redirect_to=https%3A%2F%2Fmydomain.com%2Fwp-admin%2F&reauth=1)
 * so I don’t understand where this part of the URL is coming from:
 * [https://mydomain.com/~mydomain](https://mydomain.com/~mydomain)
 * I checked the site links in the db options tables and they are correct.
 * I’ve checked the .htaccess and placed only the basic WP code there. No other 
   redirects.
 * I can’t see why the system is doing this only for the wp-admin page.
 * Any help appreciated.
 * Kerry

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/odd-redirect-when-logging-into-wp-admin/#post-14777838)
 * Try reviewing [http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-login-page-refreshing-and-redirecting-issue/](http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-login-page-refreshing-and-redirecting-issue/)

Viewing 1 replies (of 1 total)

The topic ‘Odd redirect when logging into wp-admin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/odd-redirect-when-logging-into-wp-admin/#post-14777838)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
