WebSphere HTTP Server - How do I redirect "http" to "https"?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > April 2004 > How do I redirect "http" to "https"?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I redirect "http" to "https"?
LTH

2004-03-20, 10:33 am

Most of my users are used to http:// but after I enabled SSL, links pointing
to http:// are no longer accessible.

Therefore, I would like to redirect users from http:// to https:// if they
try to access the site without including the "s".

I'ved a number of redirect directives, but no luck.

Thanks for your help.
LTH.


Aaron W Morris

2004-03-21, 7:33 pm



LTH wrote:
> Most of my users are used to http:// but after I enabled SSL, links pointing
> to http:// are no longer accessible.
>
> Therefore, I would like to redirect users from http:// to https:// if they
> try to access the site without including the "s".
>
> I'ved a number of redirect directives, but no luck.
>
> Thanks for your help.
> LTH.
>
>


You will have to have an active http port as well as the https port to
get the redirection to work. Look up the VirtualHost directive.


--
Aaron W Morris <aaronmorris@mindspring.com> (decep)

Sunit Patke

2004-03-22, 10:33 am

What I do is setup an index.html for the port 80 virtual host that does the
redirection to https using standard html tags.

Sunit

"LTH" <web_dom@yahoo.com> wrote in message
news:c3gl87$lpg$1@news.boulder.ibm.com...
> Most of my users are used to http:// but after I enabled SSL, links

pointing
> to http:// are no longer accessible.
>
> Therefore, I would like to redirect users from http:// to https:// if they
> try to access the site without including the "s".
>
> I'ved a number of redirect directives, but no luck.
>
> Thanks for your help.
> LTH.
>
>



Niclas Rothman

2004-04-02, 6:33 am

Hi, there
You should be able to use the

RewriteEngine On

RewriteRule /.* https://YOUR_DOMAIN

Searcy the apache documentation for it.
Regards Niclas


"LTH" <web_dom@yahoo.com> wrote in message
news:c3gl87$lpg$1@news.boulder.ibm.com...
> Most of my users are used to http:// but after I enabled SSL, links

pointing
> to http:// are no longer accessible.
>
> Therefore, I would like to redirect users from http:// to https:// if they
> try to access the site without including the "s".
>
> I'ved a number of redirect directives, but no luck.
>
> Thanks for your help.
> LTH.
>
>



Aaron W Morris

2004-04-02, 2:33 pm



Niclas Rothman wrote:

> Hi, there
> You should be able to use the
>
> RewriteEngine On
>
> RewriteRule /.* https://YOUR_DOMAIN
>
> Searcy the apache documentation for it.
> Regards Niclas
>
>
> "LTH" <web_dom@yahoo.com> wrote in message
> news:c3gl87$lpg$1@news.boulder.ibm.com...
>
>
> pointing
>
>
>
>


A better way to do this is:

Redirect / https://YOUR_DOMAIN

mod_rewrite is overkill in a situation like this.


--
Aaron W Morris <aaronmorris@mindspring.com> (decep)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com