View Full Version : Force https on a directory
TheMaximumWeasel
25th June 2007, 07:59
Is it possible to force https on a directory for example if a user tries to access that directory via http it auto redirects to https?
Max
TheMaximumWeasel
25th June 2007, 08:24
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/mysecuredirectory/.*$
RewriteRule ^/(.+)$ https://www.mydomain.com/$1 [R]
that works fine
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.