I\'m building a site in codeigniter. I have a series of rewrite conditions & rules in the .htaccess file. The first set of rules turns SSL on or off depending on the first
Try this one:
RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(.*)$ RewriteRule ^/?(admin|secure)$ https://%1/$1 [R=301,L]