[imp] URL Rewirting

Eric Rostetter eric.rostetter at physics.utexas.edu
Mon Mar 10 08:57:52 PST 2003


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.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the imp mailing list