Recently, I want to use htacess file to make all pages from http to https for my abc.biz(just a sample). But when I use these code in htacess file and type in google to open, there will show "you need to clear the coockie, it redirects for many times". Anyone could help me view how to solve it, many thanks! BTW, I use these code for a .com domain and it works now.
The 2 sites are using html pages, not wordpress template.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.abc.biz/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^abc.biz [NC]
RewriteRule ^(.*)$ https://www.abc.biz/$1 [L,R=301]
The 2 sites are using html pages, not wordpress template.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.abc.biz/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^abc.biz [NC]
RewriteRule ^(.*)$ https://www.abc.biz/$1 [L,R=301]