Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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?

share|improve this answer

Your Answer

 
discard

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.