Bonjour,
The site (Modx 2.2.5) of one of my clients is now using the https protocol. The SSL certificate has been correctly installed by the host.
I know that I have to change the htaccess file and I would like to use the MODX 2.6.0 htaccess file which is for the https.
The changes to be made to the MODX 2.2.5 htaccess file were better indicate than those in the MODX 2.6.0 htaccess file. All I have to do was to change «example-domain-please-change.com» with my domain name.
My knowledge of regular expressions (regex) is pretty weak and I would not want to make a mistake.
Could someone more proficient than me in regex complete this part of the htaccess file with the following domain name "mydomain.ca"
Thanks for your help.
DOMAIN : mydomaine.ca
I WANT TO USE THIS OPTION ===> Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
DID I HAVE TO USE THIS OPTION ==> Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent ...
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
#RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
#
# or for the opposite domain.com -> www.domain.com use the following
# DO NOT USE BOTH
#
#RewriteCond %{HTTP_HOST} !^$
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTP_HOST} (.+)$
#RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L] .
# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]