I have http running fine and ssl enabled for managers , the script detects by login credentials,and it works fine.
My problem is I want when a manger turns on ssl(the URL is now https://site.com), they get redirected to https://www1.site.com.
How can I do this please, in .htaccess ?
I searched google extensively, before coming here, and cant find a solution.I dont want it to redirect http: to http://www1. just if ssl is enabled.
I also tried
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
But it doesnt work.
Thank you