I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http:
/cart/ /my-account/ /checkout/As well as these rewrite's worpress has added a rewrite to remove index.php out of the url.
The index.php rewrite is about the only thing that is working.
here is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (checkout|cart|my-account)
RewriteRule ^(.*)$ [url="https://%{SERVER_NAME}%{REQUEST_URI}"]https://%{SERVER_NAME}%{REQUEST_URI}[/url] [R=302,L]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</IfModule>
# END WordPressIt redirects to the https but then gets stuck in a loop and the browser will complain of a loop. Any rewrite guru's in here.
Edited by Shutupquare, 19 February 2013 - 11:26 AM.











