Title: WordPress Admin Dashboard Redirect Issue
Last modified: August 22, 2016

---

# WordPress Admin Dashboard Redirect Issue

 *  [WezleyJ](https://wordpress.org/support/users/wezleyj/)
 * (@wezleyj)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/)
 * I have an issue with my wordpress installation, its regarding logging into the**
   admin dashboard** and server handling of urls with and without the “**WWW**” 
   part of the string:
 * Quite simply if I am logged into the Dashboard: **[http://www.domain.com/wp-admin](http://www.domain.com/wp-admin)**
 * and then if I force the page to go to **[http://domain.com/wp-admin](http://domain.com/wp-admin)**
   then wordpress logs me out and sends me back to the login screen
 * What I would like to do is the following:
 * Have everything on **[http://domain.com/wp-admin/anything](http://domain.com/wp-admin/anything)**
   redirect to **[http://www.domain.com/wp-admin/anything](http://www.domain.com/wp-admin/anything)**
   but _still keep me logged in_.
 * The reason why this is important in case you were wondering is that certain 3rd
   party applications (Jetpack in particular) are redirecting to **[http://domain.com/wp-admin/someurl](http://domain.com/wp-admin/someurl)**
   which then results in the_ user being logged out_, and the session terminated.
 * I have attempted the following – all with no results:
    1. Put a .htaccess file in the wp-admin folder which adds www to url
    2. checked the wp_options table and made sure application field has www in url
 * Any suggestions and help would be appreciated – Thanks in advance for the help
   and support

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jberghem](https://wordpress.org/support/users/jberghem/)
 * (@jberghem)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/#post-5466748)
 * Well the fact remains that [http://www.mydomain.com](http://www.mydomain.com)
   and mydomain.com are two different addresses even if they point to the same folder
   on the server.
 * the session cookie is linked to the domain so if you change from mydomain.com
   to [http://www.mydomain.dom](http://www.mydomain.dom) the session will be terminated
   because it is a different (sub)domain
 * Is it possible to keep the session active? Probably it is but that’s not going
   to be quick fix. So unless you have extensive knowledge of how sessions are build
   up and can write PHP like you write English it going to be a big and difficult
   task to do.
 * Secondly idk if you would want that from a security standpoint.
 * What is best is to have everything (including jetpack etc) redirect to [http://www.mydomain.com](http://www.mydomain.com)
   otherwise you will get different stats for with and without the www
 *  Thread Starter [WezleyJ](https://wordpress.org/support/users/wezleyj/)
 * (@wezleyj)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/#post-5466769)
 * Thanks for the reply…
 * From what I am reading above it seems like its not just a clean quick fix.
 * I am surprised that this is not just an option that you can switch on and off–
   I cant think of a situation where someone would want to deal with [http://www.domain.com](http://www.domain.com)
   and domain.com differently?
 *  [jberghem](https://wordpress.org/support/users/jberghem/)
 * (@jberghem)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/#post-5466772)
 * It comes into play when you have numerous sub domain like
    [http://www.mydomain.com](http://www.mydomain.com)
   blog.mydomain.com webshop.mydomain.com members.mydomain.com
 * Then to which subdomain should mydomain.com redirect?
 *  Thread Starter [WezleyJ](https://wordpress.org/support/users/wezleyj/)
 * (@wezleyj)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/#post-5466786)
 * ok, I see – but for subdomains I would handle each on the sever with htaccess
   redirects. But I do get what you saying…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress Admin Dashboard Redirect Issue’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [dashboard](https://wordpress.org/support/topic-tag/dashboard/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [url format](https://wordpress.org/support/topic-tag/url-format/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [WezleyJ](https://wordpress.org/support/users/wezleyj/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/wordpress-admin-dashboard-redirect-issue/#post-5466786)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
