Hi!
I have an SSL certificate in a domain and I want when someone enters my domain as:
With some of these forms redirect to
In the .htaccess I have this:
But it does not work for me, I don't know if I'm forgetting something.
I have an SSL certificate in a domain and I want when someone enters my domain as:
Code:
example.com
www.example.com
http://example.com
http://www.example.com
Code:
https://example.com
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Last edited by a moderator: