redirect old domain www and non-www to new domain with https
Wed Feb 01 2023 00:57:45 GMT+0000 (Coordinated Universal Time)
Saved by
@mel
#htaccess
#redirect
#ssl
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule ^(.*)$ "https\:\/\/newdomain\.ca\/$1" [R=301,L]
content_copyCOPY
Comments