https and .htaccess

viper357

Active 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
 

audiokid

Active member
Same question but added help regarding xenForo and https resources without https servers

Google announces Chrome will start reporting websites not using https, Jan 2017.
Beginning in January 2017, Chrome (version 56 and later) will mark pages that collect passwords or credit card details as “Not Secure” unless the pages are served over HTTPS.

The following URLs include input fields for passwords or credit card details that will trigger the new Chrome warning. Review these examples to see where these warnings will appear, and so you can take action to help protect users’ data. The list is not exhaustive.
So I activated https and the moment I did, add-ons that force their server url (branding) on xenforo throw my website into non secured red flag.

Is there a way to fix this?
If not, is there a way to stipulate all resources must be compliant with the https as well?
 
Last edited:

Arty

Well-known member
So I activated https and the moment I did, add-ons that force their server url (branding) on xenforo throw my website into non secured red flag.
Looking at page source of your forum, it seems you've installed some fishy add-on that prepends your host name to every internal link. Uninstall it. Also don't forget to change http:// to https:// in options.
 

Arty

Well-known member
Looks like it. However I've checked that add-on's demo, which is served via https and all links on demo are also https. Maybe you forgot to change some option in that add-on after switching to https?
 

audiokid

Active member
Thanks again. It looks like the developer has his banding link /Copyright in the footer forced to http
 

audiokid

Active member
update, corrected this issue as I had an http://ad.doubleclick.net rotating banner set without https.
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

Regarding the open post redirecting xenForo to https, there are 2 lines in the root .htaccess to un comment. Works like a charm now.
 
Top