News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

.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.
example:

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?

vbgamer45

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

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

Advertisement: