Viewing 1 replies (of 1 total)
  • Plugin Author matthias.wagner

    (@matthiaswagner)

    hy,

    for me these setups work well if i use a redirection to the www-versions in my htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    #First rewrite any request to the wrong domain to use the correct one (here www.)
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    #Now, rewrite to HTTPS:
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    

    as you see, you can also use this to force https if needed, otherwise just use the first part…

    hope this helps 🙂
    matt

Viewing 1 replies (of 1 total)

The topic ‘When https in place, http requests are going wrong’ is closed to new replies.