在.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 [email protected] 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})/$'
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 [email protected] 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})/$'
解决方案 »
- 用url传递参数时后面多出字符会是什么原因?
- 飞行数据回放、高分请大虾帮忙指点
- 字符替换的问题
- 为什么PHP的时间控制函数自己打自己嘴巴?
- 在使用nusoap写web service时,发现耗费cpu资源极高
- POP3收取邮件时,显示正文为一堆乱码,怎么解决?
- 为什么取不到值??晕了 分给错了
- 服务器问题请教高手指教!!!紧急求助!!
- PHP的mysql插入请求返回无报错,但数据库未更新
- 如何查找PHP中哪里符合配对有错?syntax error, unexpected $end in D:\wamp\www\index.php on l
- Parse error: syntax error, unexpected 'if' (T_IF) in line12
- 图片要在手机上显示,需要压缩大小显示,求指点。
RewriteRule ^([a-z]{2,10})\/([a-z]{1,20})/$ /index.php?controller=$1&action=$2那个 $%1 是干什么的?