[imp] URL Rewirting

srikarreddy kasarla srikarreddyk at yahoo.com
Mon Mar 10 16:58:49 PST 2003


 --- Eric Rostetter
<eric.rostetter at physics.utexas.edu> wrote: > Quoting
srikarreddy kasarla
> <srikarreddyk at yahoo.com>:
> 
> >       Right now i am using the following.
> > 
> > RewriteEngine on
> > RewriteCond %{HTTPS} !=on
> > RewriteRule ^(.*)$     https://%{HTTP_HOST}$1
> > [R,L]
> > 
> >       the above , rewriting all the requests to my
> > webserver using https, but i want to restrict that
> > only my horde/imp folder should use the
> > redirection(https) and others should use
> normal(http).
> 
> Try something like:
> 
> RewriteEngine on
> RewriteCond %{HTTPS} !=on
> RewriteRule ^/horde/(.*)$  
> https://%{HTTP_HOST}/horde/$1  [R,L]
> 
> Assuming your web path is /horde/ for horde.

   Thank you Eric, it is working.
Does the same thing works with .htaccess file

-Srikar 
> 
> -- 
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
> 
> Why get even? Get odd!
> 
> -- 
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail:
imp-unsubscribe at lists.horde.org 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


More information about the imp mailing list