• Hi guys,

    I need some help with my htaccess. I’m trying to force http whenever https is typed in the browser and also add www while not typed in. Here is what I have:

    #Force www and http
    RewriteEngine on
    RewriteCond %{HTTPS} =on [NC,OR]
    RewriteCond %{SERVER_PORT} 443 [NC,OR]
    RewriteCond %{HTTP_HOST} ^mysite.com
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

    I’ve tested this using http://htaccess.madewithlove.be/ without issues but the website keeps the https after all.

    Any ideas?

The topic ‘htaccess help !’ is closed to new replies.