Advertisement:

Author Topic: .htaccess for Pretty URLs mod and http -> https  (Read 644 times)

Offline Gerd 66

  • Newbie
  • *
  • Posts: 9
.htaccess for Pretty URLs mod and http -> https
« 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 ^(.*)$ hxxp:www.domain.de/ [nonactive]$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?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: .htaccess for Pretty URLs mod and http -> https
« Reply #1 on: January 24, 2019, 09:07:27 AM »
Just put it before any of RewriteRules
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