Jump to content


Photo

How to force ssl


  • Please log in to reply
2 replies to this topic

#1 Shaun

Shaun
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts
  • LocationMidlands

Posted 21 June 2006 - 11:45 PM

Hi, im looking for a way to make [a href=\"http://example.com\" target=\"_blank\"]http://example.com[/a] (www.example.com - [a href=\"http://www.example.com)\" target=\"_blank\"]http://www.example.com)[/a] to be forced to go to [a href=\"https://example.com\" target=\"_blank\"]https://example.com[/a] ... a working example would be entering www.paypal.com into your browsers address bar and it takes you straight to their https:// secure site.

Also on a note, would forcing ssl make sites load slower as ive looked around and https is a lot slower then http ... but does the speed depend on the quality of your ssl provider?

Also one last thing... I have never used mod_rewrite before so go easy on me ;)


thank you all in advance for your help :)


#2 Shaun

Shaun
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts
  • LocationMidlands

Posted 22 June 2006 - 11:59 PM

[img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]


#3 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 29 June 2006 - 05:28 PM

A quick google search returned these pages, which may be able to help:

Using ASP
[a href=\"http://support.microsoft.com/default.aspx?scid=kb;EN-US;q239875\" target=\"_blank\"]http://support.microsoft.com/default.aspx?...b;EN-US;q239875[/a]

Mod_rewrite
[a href=\"http://mail.opengroupware.org/pipermail/users/2004-July/010159.html\" target=\"_blank\"]http://mail.opengroupware.org/pipermail/us...uly/010159.html[/a]
Scroll half way down the page and you'll see how they wrote the rewrite rule.

Also, if you just want a much simpler method you could just put an index.html file in that directory. Then inside of that file you could use html code to redirect the user. However, the user could still work their way around this.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users