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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

python - Exception while importing pymorphy2 -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -