[rewrite_engine_m0dz] Automatically redirect visitors to SSL
Automatically redirect visitors to SSL when they visit the unsecured version of the website
The mod_rewrite module enables you to rewrite URLs.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Go further
|