mod rewrite urls

From: Date: Thu, 12 Aug 2004 06:43:22 +0000
Subject: mod rewrite urls
Groups: php.general 
Request: Send a blank email to php-general+get-193533@lists.php.net to get a copy of this message
Hi, 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 Thanks, Maris

« previous php.general (#193533) next »