Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a Multi-Site installation of Wordpress, with multiple subdomains, but only one of the subdomains has an SSL certificate.

The domains are such: is the subdomain which has a SSL cert installed.

If someone types in, how can I force them to and then after they log in redirect them back to

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I would recommend using Peters Login Redirect to redirect users after login I have used it before and works well.

You could redirect users to the secure area by adding the below to your .htaccess file :

Redirect 301 
share|improve this answer
you might be headed in the right direction with this. – cwd Sep 4 '11 at 13:02

I would get a wildcard SSL certificate. It allows an unlimited number of subdomains to be secured for your main domain.

Then I would force SSL login in wp-config.php:

define('FORCE_SSL_LOGIN', true);
/* That's all, stop editing! Happy blogging. */
require_once(ABSPATH . 'wp-settings.php');

Administration Over SSL

share|improve this answer
thanks but not looking to go the wildcard ssl route. – cwd Sep 4 '11 at 12:55
May I ask why not? Seems like that would be the quickest and simplest solution for your problem. – 128KB Sep 5 '11 at 22:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.