我是 php 和 mysql 的初学者,我老板想用 php 写这样的网址?我要求堆栈团队提供可能的链接


I am beginner in php and mysql I boss wanted to write the url like this in php?I ask stack team to give the possible link

我是 php 和 mysql 的初学者,我的老板想用 php 写这样的网址? 他们要求我避免在URL中显示ID主键,PHP扩展名。 用于编辑配置文件。

我不想要这种类型的网址?

www.college.com/faculty_details.php?ID=21&Type=Self%20finance&Name=Commerce%20(AM)

我想要这种类型的网址:

http://www.matrimony.com/myprofile/
http://www.test.com/editprofile/

我只知道普通的php和mysql查询。如何使用普通 php 解决此问题。我希望给我各种可能的答案?

在.htaccess中使用重写将"丑陋"的URL重写为漂亮的URL,请参阅:http://code.tutsplus.com/tutorials/using-htaccess-files-for-pretty-urls--net-6049