Jump to content


Photo

https to http rewrite help


  • Please log in to reply
2 replies to this topic

#1 steveswt

steveswt
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 14 August 2006 - 07:10 PM

I have a secure site with links to unsecure hard coded http links. Obviously that will not do, so i need to be able to rerwrite any non-secure pages to http and vise versa when they come back.

I am running apache tomcat/ java server

i am figuring a .htaccess file might do, but im not sure where to start.

can someone help me with this? thanks!

i noticed bankofamerica.com has the same functionallity that i want. Once logged in, all links are https, but if you go to sitemap page the https will rewrite to http.

#2 steveswt

steveswt
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 August 2006 - 05:53 PM

ok i added <%= request.getContextPath() %> to get the path instead of hard coding, now i just need to find out how to control what pages are forced to https and http.....

#3 pmeasham

pmeasham
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 30 August 2006 - 04:00 PM

Have you had a look at mod rewrite for apache ?

http://httpd.apache....writeguide.html
http://www.modrewrite.com/

Peter Measham
Unique IQ Ltd
www.uniqueiq.co.uk




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users