Revision: 43110
Updated Code
at March 17, 2011 02:29 by tribal
Updated Code
RewriteEngine On RewriteCond %{QUERY_STRING} id=login RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(index.php|)$ https://www.yourdomain.co.uk/index.php [R=301,QSA,L] RewriteCond %{IS_SUBREQ} false RewriteCond %{SERVER_PORT} ^443$ RewriteCond %{QUERY_STRING} !(id=login) RewriteRule ^(index.php|)$ http://www.yourdomain.co.uk/index.php [R=301,QSA]
Revision: 43109
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 17, 2011 02:28 by tribal
Initial Code
RewriteEngine On RewriteCond %{QUERY_STRING} id=login RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(index.php|)$ https://www.yourdomain/index.php [R=301,QSA,L] RewriteCond %{IS_SUBREQ} false RewriteCond %{SERVER_PORT} ^443$ RewriteCond %{QUERY_STRING} !(id=login) RewriteRule ^(index.php|)$ http://www.yourdomain.co.uk/index.php [R=301,QSA]
Initial URL
Initial Description
Based on query string id force ssl. If you want to do multiple pages, change id=login with id=(login|page|page2|pagen)
Initial Title
Force SSL on certain pages
Initial Tags
Initial Language
Apache