News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Using ssl and htacess redirect for log in and registering

Started by pwalter, June 19, 2011, 05:04:28 PM

Previous topic - Next topic

pwalter

I have worked for the last week or so trying to figure out how to redirect or use a .htacess file to allow just the log in pages and registration pages to use the https version.  I have a certificate installed on GoDaddy, but can't just make the individual pages redirect.  I can put the whole discussion group into https, but it seems to lose it's fomating.  I am just using the core templates now.  Here is the code that will redirect the whole discussion group

RewriteEngine On
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} /kneetalk$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /kneetalk
RewriteRule ^(.*)$ https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]


Could some tell me how to just redirect the log in and registration pages to the https version??? I am not a programer and have bashed my head against the wall for a long time about this.  Read many pages and have done a lot of searching, but just can't figure it out. 

If you can help I would really appreciate it.

Pat Walter     



Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Advertisement: