当前位置:论坛首页 > Windows面板 > 求助

【已解答】织梦首页默认301到index.html,明明没有配置301

发表在 Windows面板2021-8-11 09:49 [复制链接] 3 4580

百度抓取测试结果:301跳转到index.html站点配置里默认问答,index.html是放第一位的
重定向那里也没做301,请官方帮忙看看

1.jpg


附站点配置代码:
<VirtualHost *:80>
        ServerAdmin webmaster@example.com
            DocumentRoot "C:/wwwroot/peng"
            ServerName xxxx.com
            ServerAlias xxxx.com
        ErrorLog "C:/BtSoft/wwwlogs/xxxx.com-error.log"
        CustomLog "C:/BtSoft/wwwlogs/xxxx.com-access.log" common

        #redirect 重定向
        IncludeOptional conf/redirect/xxxx.com/*.conf

        #proxy 反向代理
        IncludeOptional conf/proxy/xxxx.com/*.conf

            ErrorDocument 404 /404.html
        
            #DENY FILES
            <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
               Order allow,deny
               Deny from all
            </Files>
        
            #PHP
            Include conf/php/56.conf
        
            #PATH
            <Directory "C:/wwwroot/peng">
                    Options FollowSymLinks ExecCGI
                    AllowOverride All
                    Require all granted
                    DirectoryIndex index.html index.php default.php index.htm default.html default.htm
               
            </Directory>
    </VirtualHost>


使用道具 举报 只看该作者 回复
发表于 2021-8-11 10:12:35 | 显示全部楼层
发域名。
使用道具 举报 回复
发表于 2021-8-11 10:44:39 | 显示全部楼层

问题已经解决了,按照网上的方法,在.htaccses文件里加了这句话就搞定了DirectoryIndex index.html index.php index.htm。  后台“默认文档”的设置不生效,可能是我宝塔版本太低?还是6.1的
使用道具 举报 回复 支持 反对
发表于 2021-8-11 16:09:55 | 显示全部楼层
宝塔用户_dzfpro 发表于 2021-8-11 10:44
问题已经解决了,按照网上的方法,在.htaccses文件里加了这句话就搞定了DirectoryIndex index.html index ...

您好,建议您更新到最新版本的面板,下载最新的安装文件覆盖安装
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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