在我的.htacess文件中,我的重写规则不起作用。这里有规则:
RewriteRule ([0-9a-zA-Z-]+)/([0-9a-zA-Z-]+)/([0-9a-zA-Z_-]+).pdf$ $1/$2/document.pdf [NC,L]
RewriteRule ([0-9a-zA-Z-]+)/([0-9a-zA-Z-]+)/([0-9a-zA-Z_-]+)/([0-9-a-zA-Z_-]+).pdf$ $1/$2/$3/document.pdf [NC,L]
当我评论其中一条规则时,未注释的规则有效。但这两个规则并不起作用,而apache日志包含:
[Tue Oct 20 15:33:57 2015] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://127.0.0.1/~guest/example.com/dir1/dir2/dir3/
有什么想法吗?诚挚地谢谢你们。