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.

2 Answers 2

Use this in your vhost definition:

<Location /vacation-rental/115>
      RewriteEngine On
      RewriteCond %{HTTPS} off
      RewriteRule     (.*)$   https://example.com%{REQUEST_URI}
</Location>
share|improve this answer
1  
You're like some sort of mod_rewrite ninja. –  womble Aug 16 '11 at 10:53
<Location /vacation-rental/115>
      SSLRequireSSL
</Location>

and see here.

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.