why dont you just do it with CF?

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Ricardo Russon
Sent: Friday, 11 July 2008 1:19 PM
To: [email protected]
Subject: [cfaussie] Re: [OT] .htaccess


Thanks George, 

Im currently using your first suggestion, which gives me everything i need
except for redirecting
https://domain.com -> https://www.domain.com (as https is already active)

Anything I try to do to combine the two seems to create a loop.

Not that its ultra important, as Kym says I can do it at a script level.

I would just prefer to have a nice clean solution for this. Doing it from
the .htaccess means that it only gets checked once, doing it a script level
means that it gets checked at every request.

Ricardo.



On Fri, Jul 11, 2008 at 12:07 PM, <[EMAIL PROTECTED]> wrote:


Try the below 

 

it is checking if https is on and if not it rewrites to the domain u
specify.

 

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

 

If it is using a specified port use the following

 

RewriteEngine On

RewriteCond %{SERVER_PORT} !443

RewriteRule (.*) https://www.example.com/require-secure/ [R]

 

Cheers

George

 

 

 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Ricardo
Sent: Friday, 11 July 2008 11:10 AM
To: cfaussie
Subject: [cfaussie] [OT] .htaccess

 

 

Can anyone help me with a .htaccess script.

 

I need to redirect all traffic that is not https://www.domain.com to

there.

 

So...

 

http://domain.com

http://www.domain.com

https://domain.com

 

all need to go to:

 

https://www.domain.com

 

I can get everything to redirect except https://domain.com

 

If anyone has some links that would be great. So far I have turned up

nothing but some basic examples. Some in depth explanation on how to

construct these files would be good.

 

Thanks,

Ricardo.










--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to