Hi I have added the below code to .ht access but how can I add another page to this? such as login.php
also if the user types in www. they get a “untrusted connection” as the SSL is only valid without the www. how could I fix this?
Thanks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /login.html
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Your first question doesn’t really give the required information to write the rewrite rule. Upon what criteria do you want to redirect them to login.php?
As far as the SSL issue;