viper357
Well-known member
Hi all
So I just moved to https and have a quick question about my .htaccess file.
Which one of these would be best to use in my .htaccess file? I have tried both of them and they both seem to work. Is there any difference between them? I have no idea what they mean or what they do, lol.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://marineaquariumsa.com/$1 [R,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Thanks
So I just moved to https and have a quick question about my .htaccess file.
Which one of these would be best to use in my .htaccess file? I have tried both of them and they both seem to work. Is there any difference between them? I have no idea what they mean or what they do, lol.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://marineaquariumsa.com/$1 [R,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Thanks