The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › Force HTTPS except for one URL
Hi! I have recently moved my site to HTTPS and use the following .htaccess 301 redirect;
RewriteEngine On RewriteCond %{ENV:HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
However, there is one URL I want to keep as HTTP i.e. http://www.mydomainname.co.uk/demonstration/links_client.php
Can anyone please confirm what code to add to the .htaccess file to achieve this?