Posted - 07/27/2019 : 20:30:05
my host said the following, but i'm not sure where to add this to make it happen
Suppose you have URL like http://shop.example.com and you want your visitors to be redirected to https://shop.example.com
Here are some examples of how to force SSL. Simply place the following rules into your .htaccess file:
HTTP to HTTPS with www Redirect This version will both redirect to HTTPS as well as add "www." to the beginning of the hostname if it is missing.
# Enable rewrite rules RewriteEngine On
## Redirect HTTP to HTTPS with www
# Only trigger rule if a non-ssl port is being used RewriteCond %{SERVER_PORT} !443 # Extract non-www portion of HTTP_HOST RewriteCond %{HTTP_HOST} ^(www\.)?(.*) [NC] # Redirect to HTTPS with www RewriteRule (.*) https://www.%2/$1 [R=301]
|