I have a joomla site which has a non-secure side and a secure side (ie. it can be accessed via either http or https). The problem is, I want it to default to http for normal viewing, and then when someone specifically goes into the 'shop' module I want it to redirect to the https site. I have enabled mod_rewrite and created the below in my .htaccess file.
But, as you can probably guess from the fact that I am posting here, it doesn't work.Code:RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^http://%{SERVER_NAME}/index.php?option=com_virtuemart(.*)$ https://%{SERVER_NAME}/index.php?option=com_virtuemart$1 [L,R]
Anyone got any pointers, as I've never really got my head around rewrite rules. I'm probably missing something blatantly obvious...



LinkBack URL
About LinkBacks
Reply With Quote

I noted that the box with the secure site in defaults to http for some reason. 
