@jasonahouleApr 17.2007 — #Why not just do it this way? So you don't have to worry about how many digits there are. And if you don't want to redirect the user, then remove the [R]. That way your user still sees the URL as http://myhost.org/id/1/ although they are really at http://myhost.org?id=1 <i> </i>RewriteEngine on RewriteRule ^id/([0-9]+)$ /id/$1/ [R] RewriteRule ^id/([0-9]+)/$ /index.php?id=$1