【问题标题】:http://domain.com is not opening in a wordpress sitehttp://domain.com 未在 wordpress 站点中打开
【发布时间】:2016-07-13 09:51:28
【问题描述】:

http://domain.com 未在 wordpress 站点中打开。当我在 webbrowser 中键入 domain.com 时,它会自动转到 www.domain.com。但是当我输入http://domain.com 时,它显示“无法访问此站点”.. 我该如何解决这个问题,请告诉我?

【问题讨论】:

    标签: php wordpress .htaccess url-redirection


    【解决方案1】:

    请在 Apache 服务器 httpd.conf 文件中使用以下行。

    <VirtualHost *>
      DocumentRoot /var/www
      ServerName www.domain.com
      ServerAlias domain.com
    </VirtualHost>
    

    然后重启服务器。

    service httpd reload
    

    service apache2 restart
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-09
      • 1970-01-01
      相关资源
      最近更新 更多