Apache 伪静态规则 规则匹配出错 听听大家的建议和意见
确定Apache的伪静态模块已经开启
URL 为http://localhost/test/intro.php?id=1
书写规则为
RewriteEngine On
#RewriteBase /
RewriteRule ^(.*)/intro/([0-9})、.html$ /intro.php?id=$2
出错提示为
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
个人观点是静态规则配置出错 刚接触伪静态 和正则 不太明白哪里错了
------解决方案--------------------RewriteRule ^(.*)/intro/([0-9})\.html$ /intro.php?id=$2