Please help with this url rewrite issue! Trying for two days

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mobsterstats
Forum Newbie
Posts: 3
Joined: Wed Feb 25, 2009 11:10 am

Please help with this url rewrite issue! Trying for two days

Post by mobsterstats »

http://ourwebsite.com/test/details.php? ... l=$3&id=$4

trying to rewrite the above link to the following below

http://ourwebsite.com/test/details/2...civic/23450003

below is what i have for my .htaccess in the test folder

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 will be str_replaced with -

Thanks for your help!
sujithtomy
Forum Commoner
Posts: 46
Joined: Tue Mar 24, 2009 4:43 am

Re: Please help with this url rewrite issue! Trying for two days

Post by sujithtomy »

Post Reply