Apache rewrite rule to remove index.php and direct certain areas to https
- by Stephen Martin
I have a codeignitor application running on Apache2, I have managed to remove the index.php from the urls with this .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
now I want to make certain parts of the site redirect to https, I tried this:
RewriteEngine on…