Title: Force SSL using different domain
Last modified: August 19, 2016

---

# Force SSL using different domain

 *  [micinter](https://wordpress.org/support/users/micinter/)
 * (@micinter)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/force-ssl-using-different-domain/)
 * Hello,
 * In the wp-config file i have added `define('FORCE_SSL_LOGIN', true);` to force
   the use of SSL when logging in. I am running WP on [http://a.com](http://a.com)
   but don’t have a valid SSL certificate for it. I do have a valid certificate 
   for [http://b.com](http://b.com) which points to exactly the same server etc.
   The WP installation works fine on both domains (but obviously reverts to a.com
   when you click on any internal links).
 * I have changed the value of uri_ssl in the db so that it uses [https://b.com](https://b.com).
   When i log in it seems to authenticate and then returns to a.com but the session
   is not active. I am guessing this is because it is being authenticated against
   a different domain and this does something funny with the cookie?
 * Any ideas on how i can get this to work?
 * Thanks, Michael

The topic ‘Force SSL using different domain’ is closed to new replies.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [micinter](https://wordpress.org/support/users/micinter/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/force-ssl-using-different-domain/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
