【发布时间】:2011-08-18 03:01:39
【问题描述】:
我遇到了如何配置这个问题,测试站点工作正常,“http://test.domain/beta/”但是当我们配置域“http://prod_domain/”时,指向在同一目录上,它返回一个 http 500 错误,我检查了 apache 错误日志并得到了这个:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
这是我的 .htaccess 之类的:
RewriteEngine On
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php?/$1 [L]
【问题讨论】:
-
可以在
rewritecond中指定$1吗?
标签: php apache codeigniter mod-rewrite