Re: Asuming query without the ?
| From: | Robert Winter | Date: | Thu, 03 Jun 2004 23:30:27 +0000 |
| Subject: | Re: Asuming query without the ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187580@lists.php.net to get a copy of this message | ||
Where and how do I set this? I'm to Unix and PHP.
"Marek Kilimajer" <lists@kilimajer.net> escribió en el mensaje
news:40BF56D2.1030008@kilimajer.net...
> Robert Winter wrote:
> > Is it possible to configure PHP/.htAccess/etc. for assuming a query when
the
> > users enters a path like this:
> >
> > www.myserver.com/path/154 --> assumes
> > www.myserver.com/path/index.php?code=154
> >
> > The only thing I could do is avoid writing index.php but I still have to
> > write the ?: www.myserver.com/path/?154
> >
> > Any idea?
> > Thanks.
> > Gus
> >
>
> RewriteRule ^/path/([0-9]+)$ /path/index.php?code=$1