Re: hidden PATH_INFO

From: Date: Wed, 25 Sep 2002 19:12:06 +0000
Subject: Re: hidden PATH_INFO
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117626@lists.php.net to get a copy of this message
> Hi there. I'm trying to come up with a way to do > PATH_INFO urls without having to call a script. Let me > explain. > > I know how to make it work with a url like this: > > http://foo.com/bar.php/arg1/arg2/etc > > or even: > > http://foo.com/bar/arg1/arg2/etc > > What I'm trying to figure out is how to make it call > index.php without specifying it, like this: > > http://foo.com/arg1/arg2/etc > > Any pointers? This is something that will need to be done on the Apache level with rewrites, I believe. The PATH_INFO hack is a useful one, but if you don't want to call a script directly, I think you'll need a rewrite. There also may be another way to do it in Apache, but I don't think there's anything in PHP you can do to accomplish this. -- [ joel boonstra | jboonstra@gospelcom.net ]

« previous php.general (#117626) next »