【问题标题】:I am not getting the site when I make the request through HTTP当我通过 HTTP 发出请求时,我没有得到该站点
【发布时间】:2011-03-03 02:03:49
【问题描述】:

我有网站 www.mytest.com(在 php 中)

当我以https://mytest.com 请求它时,我正在获取该网站,

但是当我请求站点为:http://mytest.com 时,它不起作用。

谁能告诉我是什么原因?

服务器上有这个.htaccess文件:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$  https://mytest.com/$1 [R,L]

【问题讨论】:

  • 网络服务器是否设置为接受端口 80 上的连接,是否设置了 VirtualHost 指令?

标签: php .htaccess


【解决方案1】:

最后一行真的说的是:

RewriteRule ^(.*)$ @987654321@$1 [R,L]

如果是,请在前面添加一个井号 (#) 以将其注释掉。例如,将其更改为:

# RewriteRule ^(.*)$ @987654322@$1 [R,L]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-13
    • 2019-09-11
    • 1970-01-01
    • 2020-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多