Jump to content

Archived

This topic is now archived and is closed to further replies.

steveswt

https to http rewrite help

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.....

Share this post


Link to post
Share on other sites
Have you had a look at mod rewrite for apache ?

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
http://www.modrewrite.com/

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.