Home Forums WordPress Plugins Hide My WP Http to Https in .htaccess

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28228
    matsbeckman
    Active
    Post count: 16

    Hi there,

    Im going to make a http to https redirection with the following code, that i was advised to use by hosting provider.

    
    RewriteEngine On
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    

    Before i try this, i just want to make sure that you guys can confirm that this code sippet can be used with HMWP if i put it in the top of my .htaccess file? I’m not too happy about touching my .htaccess too much, as problems have occurred in the past when I’ve tried similar things.

    #28229
    Suman M.
    Post count: 12455

    Hi, thanks for contacting us. The above rule can be used along with HMWP. If in case any issue, then do let us know.

    #28243
    matsbeckman
    Active
    Post count: 16
    This reply has been marked as private.
    #28253
    Suman M.
    Post count: 12455

    Hi, you can add it after. Thanks!

    #28279
    matsbeckman
    Active
    Post count: 16
    This reply has been marked as private.
    #28296
    Suman M.
    Post count: 12455

    I checked the htaccess content, and HMWP rules are being added there correctly. You can add https redirection rule at the end of htaccess content.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.