在Nginx中将https站点重定向到http url

问题描述:

我在我的nginx.conf文件中有这个重定向脚本。我想重定向到http://网站,但我的出处是https://如何从网址中删除's'?添加HTTP://到通将无法正常工作在Nginx中将https站点重定向到http url

rewrite ^(?!/mt/)(.*)$ /content$1 break; 

来源:https://blog.com/mt/content/apple/site.php

重定向:http://blog.com/content/apple/site.php

使用协议和主机重定向中:

rewrite ^(?!/mt/)(.*)$ http://blog.com/content$1 break;