RE: [PHP] mod rewrite urls

From: Date: Thu, 12 Aug 2004 11:48:25 +0000
Subject: RE: [PHP] mod rewrite urls
Groups: php.general 
Request: Send a blank email to php-general+get-193538@lists.php.net to get a copy of this message
[snip] struggling with the following: I have an URL www.mycompany.com/index.php?id=10&a=1&b=2&c=3 What I want to do is using mod_rewrite have www.mycompany.com/10/?a=1&b=2&c=3 Have tried the following rewrite rules in .htaccess RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} ^/([0-9]*)/\?(.+)$ RewriteRule ^([0-9]*)/\?(.+)$ get.php?id=$1&$2 [L] But this doesnt work, something's wrong with "?", because if I put in rule any alphabetical character, for example "Z" then www.mycompany.com/10/Za=1&b=2&c=3 works fine [/snip] a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how?

« previous php.general (#193538) next »