我的网址:example.com/epathasala/**schooldetails.php**?name=st-matthews-school
example.com/epathasala/的 collegedetails.php ?名称= GTN-艺学院
预期网址:
example.com/epathasala/**schooldetails**/st-matthews-school
example.com/epathasala/的 collegedetails / GTN-艺学院
所以我想从网址中删除?name =,请帮助我。
在该url查询字符串中仅删除。在我的情况下,在查询字符串之前也有变化。
示例Schooldetails不是静态的,它将改为大学细节或事件或大学等等
答案 0 :(得分:1)
这可能会成功
RewriteEngine On
RewriteBase /
RewriteRule ^epathasala/schooldetails/(.*)$ /epathasala/schooldetails.php?name=$1 [NC,L]