DISCUZ x3.4 x3.3 x3.2 开启301强制跳转https后 门户栏目(文章分类)出现302死循环无法打开
h,t,t,p,s://ww,,w.xxx.c,o,m/portal.php?mod=list&catid=1(这样的页面无法打开) 解决办法:
步骤二:去掉 index.php 去掉 portal.php
\index.php:
查找:(112行)
- $url =
empty($_ENV['domain']['app']['default']) ?
(!empty($_ENV['domain']['defaultindex']) ?
$_ENV['domain']['defaultindex'] : 'forum.php') :
'http://'.$_ENV['domain']['app']['default'];
复制代码
替换为:
- $_ENV['curapp'] = str_replace('.php', '', $_ENV['domain']['defaultindex']);
复制代码
|