View Single Post
Old 07-04-2018, 05:11 AM  
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,503
Should look like this with a real example where you don't want to redirect domain.com/test_url/

Code:
RewriteEngine On

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/test_url\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]    

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/test_url\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]
But while you are on Cloudflare you may try to exclude it on their end and force everything else to SSL:
https://stackoverflow.com/questions/...ed-url-pattern
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote