The Easiest Way to Save and Share Code Snippets on the web

Your snipt has been migrated to #newsnipt successfully.

htaccess to force non secure

apache

posted: Jun, 1st 2010 | jump to bottom

#redirect links that should not be secure (a domain change too)
#match wrong secure   https://www.cactuslanguage.co.uk/en/
#send to non secure      http://www.cactuslanguage.com/en/
 
RewriteEngine On
 
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} !^/(en|sp|fr|de|it)/book [NC]
RewriteRule .* http://www.cactuslanguage.com%{REQUEST_URI} [R,L]
 
109 views