Hi,
I have a website, where I want all pages to be secure using https:// , but I want a folder to be ignored so the files in that folder will be using regular http:// . Eg, http://wwww.example/com/admin but the rest will be https://www.example/com/page1 , https://www.example.com/page2 etc.

I have htaccess setup already to rewrite all requests to https:// but I'm stuck on ignore this particular folder.

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

How could I get it ignore the admin folder?

Thanks,
Ben

RewriteCond %{REQUEST_URI} !/admin/.*$

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.