Re: Asuming query without the ?
| From: | Daniel Clark | Date: | Thu, 03 Jun 2004 23:34:04 +0000 |
| Subject: | Re: Asuming query without the ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187582@lists.php.net to get a copy of this message | ||
I think it's in the Apache config file.
> 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