So, I have a ZF MVC site and you want to force an SSL connection to everything under my / checkout / I tried using mod_rewrite for this, so my .htaccess will look like this:
RewriteEngine on RewriteRule (\/checkout.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R] RewriteRule !\.(js|ico|gif|jpg|png|css|swf|xml|avi|flv|mov|mp3|wav)$ index.php [L]
Of course, it does use SSL, but the second rule that ZF defines and redirects everything to index.php sorta erases the protocol specification.
Unfortunately, my level of ownership of mod_rewrite is terribly terrible. Maybe someone can help me solve this?
xelurg
source share