RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^iafssg\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.iafssg\.com$ RewriteRule ^(.*)$ https://www.iafssg.com/$1 [R,L] # REDIRECT HTTPS RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^iafssg\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.iafssg\.com$ RewriteRule ^(.*)$ https://www.iafssg.com/$1 [R,L] #END OF HTTPS