HTTPS automatic redirect with .htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hydronix
    New Member
    • Jan 2017
    • 2
    • 5.2.x

    HTTPS automatic redirect with .htaccess

    Edited the .htaccess file with
    Code:
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    All hell broke lose. How to ensure things work fine after the rewrite?
    Thanks
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    Mine just uses this without issue:
    Code:
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    We'd probably need to know what 'all Hell breaks loose' actually means though.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • hydronix
      New Member
      • Jan 2017
      • 2
      • 5.2.x

      #3
      Cats were sleeping with dogs, the Sun has risen in the West. Editing Login, Core and Vbulletin URLS to https fixed the problem though.

      Comment

      Related Topics

      Collapse

      Working...