wood burning stoves 2.0*
The moose likes Java in General and the fly likes Web server config to redirect http request to https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Web server config to redirect http request to https" Watch "Web server config to redirect http request to https" New topic

Web server config to redirect http request to https

shobhit bhargava

Joined: Jun 05, 2003
Posts: 1
I am using iPlanet the requirement is to redirect all requests coming at http://www.sitesurl.com to https://www.sitesurl.com . From there on, the entire site is on https.
Any help is appriciated.
respond to vinsho2003@yahoo.com
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61105

Welcome to the Ranch, shobhit!
You wrote:

This is not a good thing since no others who might have the same question would benefit from the answer.
Also, the Ranch has an HTML/Javascript Forum where non-Java questions like this would be more appropriate.
That said, one appraoch would be to place an index.html page in the folder where http://www.sitesurl.com resolves to, and use a meta tag within that page to immediately redirect to the https equivalent. Be sure that they are not the same page as you will create an endless cycle of redirects.
If you have any question regarding this technique, please feel free to post a question in the HTML forum (or ask a bartender to move this topic there).
There may also be container-specific ways to tell iPlanet to do this for you, but I wouldn't know about that. There is an "Other Servers" forum for those types of questions.
[ June 05, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
please refer to:
Release Notes for iPlanet Portal Server 3.0;
NSAPI Programmer's Guide for iPlanet Web Server;
Extending Your Server With Programs
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Web server config to redirect http request to https