Jump to content


Photo

mod rewrite https redirect


  • Please log in to reply
2 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 17 July 2006 - 08:32 PM

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} != on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R=permanent]
</IfModule>
I am trying to do a mod rewrite but it's not working, it's giving me a 500 server error, it should redirrect to https when someone tries to visit the site, am I doing something wrong.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 18 July 2006 - 12:54 AM

http://www.google.co...G=Google Search

You could probably click on any one of those links and get an easier answer.  I'm not sure if mod_rewrite will do a redirect anyway...I think it will just rename the url, making someone think they are at a secure site...which is not a good practice.

#3 TEENFRONT

TEENFRONT
  • Members
  • PipPipPip
  • Advanced Member
  • 338 posts

Posted 18 July 2006 - 01:06 AM

Yeah the mod rewrite on rewrites the URL. It doesnt look like hes trying to decieve his users, it looks likes heys checkjing that there on a https page, then if then redirect them.

You want a simple redirect.
Teenfront.co.uk : Free Teen Chat -  FunkySmileys.co.uk : MSN Smileys -  ArcadeMonkey.co.uk : Free Flash Games
8Baller.co.uk : Free Multiplayer Pool [url=http://8Baller.co.uk]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users