http://ourwebsite.com/test/details.php?year=$1&make=$2&model=$3&id=$4 trying to rewrite the above link to the following below http://ourwebsite.com/test/details/2008/honda/civic/23450003 below is what i have for my .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^/test/details/(.*)/(.*)/(.*)/(.*$)/ test/details.php?year=$1&make=$2&model=$3&id=$4 Would like to also know how i convert it in php! Model names with spaces with be str_replace with - Thanks for your help!