RewriteRule ^(.*)/([a-z]+)-(.*)\.html $1/$2\.php?a=$3 重写为: http://127.0.0.1/a-yenteng.html([a-z]+)为字母(.*)为全部([0-9]+)为数字。
规则如下:RewriteEngine onRewriteRule ^/a/(.*)$ /$1 [R=301,NC,L]你要记得,RewriteRule获取到的URL包含有最前面的斜杠(也就是域名或端口号后面的斜杠)