开发者

I am not getting the site when I make the request through HTTP

开发者 https://www.devze.com 2023-02-14 05:07 出处:网络
I have the site www.mytest.com (in php) I\'m getting the site, when i request it as https://mytest.com,

I have the site www.mytest.com (in php)

I'm getting the site, when i request it as https://mytest.com,

B开发者_开发问答ut when I request the site as: http://mytest.com, it's not working.

Can anyone tell me what is the reason?

There is this .htaccess file on the server:

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


Does the last line really say:

RewriteRule ^(.*)$ https://mytest.com/$1 [R,L]

If it does, add a pound sign (#) in front to comment it out. For example, change it to:

# RewriteRule ^(.*)$ https://mytest.com/$1 [R,L]

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号