I'm trying to redirect ALL traffic for http://*.domain.com to https://secure.domain.com.

What I have so far:

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName domain.com
  ServerAlias *.domain.com
  RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://secure.domain.com%{REQUEST_URI}
</VirtualHost>

This seems to work for:

www.domain.com
www.domain.com/whatever
anything.domain.com
anything.domain.com/whatever

But not for:

domain.com
domain.com/whatever

What am I missing?

link|improve this question
feedback

1 Answer

Hmm... disregard, I think:

Seems to be affecting only Chrome right now, and only in non-incognito mode.(?!)

Works as expected in Safari, Chrome (incognito) and Firefox (all on Mac).

Not working in Chrome (non-incognito mode)... perhaps some odd caching issue?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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