Forward http domain to https using htaccess

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} domain\.in [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.domain.in/$1 [R,L]


Comments