Linux - redirect/rewrite http to https for a specified directory

<Virtualhost>
...
<Location "/cacti">
RewriteEngine on
Options +FollowSymLinks
Allow from all
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
<⁄Location>
...
<⁄Virtualhost>

Comments