How do I rewrite this url using php and .htaccess? -
i'm building real estate website , have template file called 'building.php', uses mysql information using post or get. link (with variable id) each building looks this: realestate.com?building=1. have specific code , title each building though. let's in case code k-001 , title 'new offices brooklyn, ny'. want url rewrite
'realestate.com?building=1' -> 'realestate.com/k-001/new-offices-brooklyn-ny'
how can rewrite url dynamically each building using mysql query?
Comments
Post a Comment