宝塔用户_dzfpro 发表于 2021-8-11 09:49:52

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

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




附站点配置代码:
<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>


大炮运维V587 发表于 2021-8-11 10:12:35

发域名。

宝塔用户_dzfpro 发表于 2021-8-11 10:44:39

大炮运维V587 发表于 2021-8-11 10:12
发域名。

问题已经解决了,按照网上的方法,在.htaccses文件里加了这句话就搞定了DirectoryIndex index.html index.php index.htm。后台“默认文档”的设置不生效,可能是我宝塔版本太低?还是6.1的

大炮运维V587 发表于 2021-8-11 16:09:55

宝塔用户_dzfpro 发表于 2021-8-11 10:44
问题已经解决了,按照网上的方法,在.htaccses文件里加了这句话就搞定了DirectoryIndex index.html index ...
您好,建议您更新到最新版本的面板,下载最新的安装文件覆盖安装
页: [1]
查看完整版本: 【已解答】织梦首页默认301到index.html,明明没有配置301