每个人..
我需要重写这个网址
http://www.mydomain.com/profiles/tutors/index.php?tutorCode=1255&tutorName=Kasun%20Perera&city=Bandarawela
像这样
http://www.mydomain.com/profiles/tutors/1255/Kasun+Perera.html
我尝试使用 Apache 的 mod_rewrite 功能。但我无法达到预期的结果。
这是我尝试过的代码。
RewriteEngine on
具体老师:
RewriteRule ^lanka_institute/profiles/tutors/([0-9]+)/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/$ index.php?tutorCode=$1&tutorName=$2&city=$3
它不起作用,然后我会收到此错误消息。
内部服务器错误
服务器遇到内部错误或配置错误,无法完成您的请求。
请联系服务器管理员 admin@localhost 并告知他们错误发生的时间,以及您所做的任何可能导致错误的事情。
服务器错误日志中可能提供有关此错误的更多信息。
非常感谢任何评论。
谢谢你。