On Mon, 13 Oct 2003, Fagyal, Csongor wrote: > Date: Mon, 13 Oct 2003 14:17:06 +0200 > From: "Fagyal, Csongor" <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Config question > > Hi, > > I would like to map all incoming requests of a virtualhost to the same > ASP file. Is there a way I can do this without using mod_rewrite? > So I need > http://domain/whatever/andanythingelse > http://domain/whatever/hello.xyz?zoh=zoh > call the same > $documentroot/index.asp > which should be able to access the URI (in the original form). > > Is this possible? How?
Hi- I'll assume that you're running on Apache. This is ridiculously easy with Apache's mod_rewrite. Basically, you just turn rewrite on and direct every request to your script. Put lines like this in the appropriate section of your httpd.conf (a Location or VirtualHost, perhaps): RewriteEngine On RewriteRule ^/(.*) /index.asp/$ If you're on Apache 2, you might also need: AcceptPathInfo On Then you can access the incoming path as PATH_INFO in $Request->ServerVariables("PATH_INFO"). HTH, --Quentin > > Thanx, > - Csongor --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]