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

Offline Gerd 66

  • Semi-Newbie
  • *
  • Posts: 43
.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.

RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$$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: 23,417
    • 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! -  Paid Modifications for SMF

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