views:

9

answers:

1

So I've got a website and an SSL certificate. Everything is set up and working, however, both http://example.com/checkout and https://example.com/checkout work. I'm hoping there's a way to write a rule where anything going to /checkout is rerouted to https.

Ideas?

+1  A: 

Try this:

RewriteCond %{HTTPS} off
RewriteRule ^checkout$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Gumbo