how to replace id with associated db title in url using htaccess

孤者浪人 提交于 2019-12-24 11:50:11

问题


[ Related question: How to write htaccess rewrite rule for seo friendly url ]

I need to replace section id with associated title name in database .

example.com/section.php?id=5 

change to

example.com/section/travel

where id 5 has title travel in database

is it possible using htaccess? if yes how would htaccess look like.

thanks.

来源:https://stackoverflow.com/questions/28171065/how-to-replace-id-with-associated-db-title-in-url-using-htaccess

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!