.htaccess正则表达式出错,apache错误日志显示不能编译
在.htaccess文件里写了一个匹配规则:RewriteRule^([a-z]{2,10}\/([a-z]{1,20})/$/index.php?controller=...
在.htaccess文件里写了一个匹配规则:RewriteRule ^([a-z]{2,10}\/([a-z]{1,20})/$ /index.php?controller=$1&action=$2$%1,
运行后,显示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache错误日志,显示错误为:
RewriteRule: cannot compile regular expression '^([a-z]{2,10}/([a-z]{1,20})/$'
求助…… 展开
运行后,显示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache错误日志,显示错误为:
RewriteRule: cannot compile regular expression '^([a-z]{2,10}/([a-z]{1,20})/$'
求助…… 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询