![]() |
Force https on a directory
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 |
RewriteEngine on
RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/mysecuredirectory/.*$ RewriteRule ^/(.+)$ https://www.mydomain.com/$1 [R] that works fine |
| All times are GMT +2. The time now is 10:26. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.