Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: Gerd 66 on January 24, 2019, 06:54:42 AM

Title: .htaccess for Pretty URLs mod and http -> https
Post by: Gerd 66 on January 24, 2019, 06:54:42 AM
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?
Title: Re: .htaccess for Pretty URLs mod and http -> https
Post by: vbgamer45 on January 24, 2019, 09:07:27 AM
Just put it before any of RewriteRules