Hi,
I have come accross many solutions similar to what I need but I have tried changing them and have had no luck, it seems to be ignoring them sometimes and not other times.
Essentially I have a site which I need to have https on only on certain pages or all php pages if that is easier but not for friendly urls e.g. /womens/skirts/
So far I added at the bottom in the if statement:
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_FILENAME}!\.php
RewriteRule %{HTTPS} =off
Also in case it makes a difference there is some code at the top to generate the friendly urls:
Options +FollowSymLinks -MultiViews -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /psyche/
RewriteCond %{ENV:REDIRECT_STATUS} !^401$
RewriteCond %{REQUEST_URI} !^/psyche/(payment|admin|provider|partner)/
#RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico)$
RewriteRule loader_(.+).css loader.php?type=css&md5_suffix=$1 [L]
RewriteRule loader_(.+).js loader.php?type=js&md5_suffix=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ dispatcher.php [L]
</IfModule>
I would really appreciate anyones help as the when you are in HTTPS the friendly urls don't work which I never realised so am getting pressure off my client I don't understand why it isn't working though. Even if not a solution maybe someone could point me in the right direction or tell me where I'm going wrong.
Many Thanks,
Tom