Re: Asuming query without the ?
| From: | Marek Kilimajer | Date: | Thu, 03 Jun 2004 16:50:26 +0000 |
| Subject: | Re: Asuming query without the ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187558@lists.php.net to get a copy of this message | ||
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 --> assumeswww.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