[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-list
Subject:    Solved: Re: Apache  ReDirect
From:       "Mike McMullen" <mlm () loanprocessing ! net>
Date:       2003-09-30 20:25:05
[Download RAW message or body]

The following code can be placed in the appropriate .htaccess file
or configuration file to redirect  from http to https for any file in a
given directory. This works great for my use.

  RewriteEngine on


  RewriteCond %{SERVER_PORT} ^80$
  RewriteCond %{PATH_INFO} ^$
  RewriteRule ^(.*) https://my.example.net/fred/ [L]


  RewriteCond %{SERVER_PORT} ^80$
  RewriteRule ^(.*) https://my.example.net/fred/$1


Thanks to all who responded. I finally found the correct answer in the
archives which I missed the first time I looked.

Mike


> Subject: Re: Apache ReDirect


> I meant to add that it can be code added in the pages themselves
> unless there is a more general solution.
> 
> Mike
> 
> > 
> > I want to be able to redirect requests for certain pages to port
> > 443 ie https vs http. I remember seeing this done with just a
> > few lines of code but can't find the reference. Any help
> > appreciated.
> > 
> > Thanks,
> >  
> > Mike 
> > 
> 
> 
> -- 



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic