請問一下,以下2者的網址,為何沒有 teach.html 或 teach.php
等等的頁面,卻是以teach,student做為頁面呢?
這是怎麼做的叱?
http://www.iciba.com/teach
http://www.iciba.com/student
等等的頁面,卻是以teach,student做為頁面呢?
這是怎麼做的叱?
http://www.iciba.com/teach
http://www.iciba.com/student
按他这个具体情况来说,一般是通过urlrewrite来实现的
demo,demo.aspx,demo.asp,demo.php,demo.jsp,demo.pl,demo.cgi
还有就是urlrewrite
http://www.iciba.com/student
和
http://www.iciba.com/teach /index
http://www.iciba.com/student/index
是等价的。
若有一萬個字 ,就要等價一萬個index似乎有點困難。
壓克力
把teach重写成dict.php?word=teach就能实现了
其真实地址为http://www.iciba.com/index.php?s=study