Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2010-07-19 16:06:53

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#3 2010-09-02 19:50:42

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

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

Board footer

Powered by FluxBB