pache 显示这样的错误时 "Request exceeded the limit of 10 internal redirects due to probable configuration er

本文介绍了当Apache服务器显示重定向错误时的两种解决方案。一种是在网站根目录创建.htaccess文件并配置特定规则;另一种是修改Apache配置文件,调整重写引擎设置及允许覆盖选项。


apache 显示这样的错误时 "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

apache 显示这样的错误时 "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." 中文意思:要求超过10内部重定向由于可能的配置错误的限制。使用“limitinternalrecursion '如果有必要增加限制。使用“调试”LogLevel生成回溯。  这是出现的apache 出现的重定向的错误。

解决办法有两个 
  1、在网站的根目录下建立文件 .htaccess ,内容类似下面内容
    
    这个配置的意思是 “index.php 后面 不是这 images.uploads.tpl 等目录,就会走下面的php重定向的内容,一般是走框架内的重定向”。加入相应的文件目录,问题应该解  决了吧

  2、修改 apache 服务器的配置文件(linux apache 分散式配置)
    

    这个总体看起来,和上面的.htaccess 文件内容差不多。
    需要把  RewriteEngine off  ====》RewriteEngine on
    依然在此加上相应的目录  RewriteCond %{REQUEST_URI} !^(/index\.php|/static/|/lib/|/admin/|/uploads/|/tpl/)
     AllowOverride All  默认是 None  改成 All
  

    如果还是不行,可以把  根目录的斜线去掉,改成      RewriteCond %{REQUEST_URI} !^(index\.php|static/|lib/|admin/|uploads/|tpl/)

  
    希望我的解决办法能给你帮助。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值