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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -