It might be easier to do something like <Files view> ForceType application/x-httpd-php </Files>
Then you could have your url http://mycompany.com/view/10/?a=1&b=2&c=3 You can do the same thing with / but the scope ends up pretty big and creates a lot of extra unnecessary processing. -Ed > -----Original Message----- > From: Maris [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 11:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] mod rewrite urls > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php