.htaccess for Pretty URLs mod and http -> https

Started by Gerd 66, January 24, 2019, 06:54:42 AM

Previous topic - Next topic

Gerd 66

The provider supports https. Unfortunately, it does not work 100% on all forums right away.

The .htaccess files of my forums contain entries from the "Pretty URLs mod"

I would also like to make entries for the rewrite from http to https.

RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.domain.de/$1 [R=301]

Can I do this?
If so, should the entries be made at the beginning or at the end of the .htaccess file?


Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro