Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 更新至3.3后出现首页纯域名访问:将您重定向的次数过多。

[复制链接]
yfxz 发表于 2017-1-3 21:42:03 | 显示全部楼层 |阅读模式
本帖最后由 yfxz 于 2017-1-3 21:52 编辑

最后发现根目录下index.php替换成原来的即访问正常。

不知道是不是这段代码的问题:
if(!empty($url)) {
        $delimiter = strrpos($url, '?') ? '&' : '?';
        if(isset($_GET['fromuid']) && $_GET['fromuid']) {
                $url .= sprintf('%sfromuid=%d', $delimiter, $_GET['fromuid']);
        } elseif(isset($_GET['fromuser']) && $_GET['fromuser']) {
                $url .= sprintf('%sfromuser=%s', $delimiter, rawurlencode($_GET['fromuser']));
        }
        header("HTTP/1.1 301 Moved Permanently");
        header("location: $url");
} else {
        require './'.$_ENV['curapp'].'.php';
}

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-12 14:01 , Processed in 0.019812 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表