Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-07-19 10:08:08
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Force HTTPS for a single section
Some years ago I set up a complete txp in https.
But now I need a single section forced to https.
The rest should be http.
Does anyone know how to do that?
Offline
Re: Force HTTPS for a single section
In .htaccess right after RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/your_section$
RewriteRule ^(.*)$ https://tld.com/your_section [R,L]
only problem is that once you hit the https section and navigate away the site is then all https.
Last edited by mrdale (2010-07-19 16:07:10)
Offline
Re: Force HTTPS for a single section
there isn’t a way to switch it off when outside that section? I’m running into the same thing.
Offline
Pages: 1