Hi all,

I've got a (hopefuly) simple question. Is it possible to do a redirect from a 
vServer to the default-host if a certain condition occurs?
For example: 

I have a vServer named www.my-vserver.com when the user calls one of the 
following urls, I want to redirect him
to the "default" host and keep the hostname:

^www.my-vserver.com(\/|)$ [OR] 
^www.my-vserver.com/199(\/|)$ [OR]
^www.my-vserver.com/199/1(\/|)$ [OR]

^(.*)$ -> /199/index.html (internal redirect)

the vServer "default" handles all incoming request with the following regular 
expression:

^\/([0-9]+)\/index\.html$ -> /scriptdir/index.php?cid=$1 (internal redirect)

My goal is to handle all the url-rewriting in the default-host while the 
vservers are just there to redirect the first page request to the default host.
We have over 100 vServers and the rules for url rewriting change quite often so 
a single point of management, like in apache,
would really help us.

Kind regards

Roman
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to