Chrome版本:67.0.3396.87
网络服务器:Apache
当我点击http://www.assignmenthelpdesk.local时,它会重定向到https://www.assignmenthelpdesk.local/
如何阻止MAMP重定向到https?预先感谢。
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf下面的详细信息:
<VirtualHost *:80>
DocumentRoot /Applications/MAMP/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /Applications/MAMP/htdocs/AssignmentHelpDesk
ServerName www.assignmenthelpdesk.local
</VirtualHost>
/ etc / hosts详细信息
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
127.0.0.1 www.assignmenthelpdesk.local
255.255.255.255 broadcasthost
::1 localhost
/Applications/MAMP/conf/apache/httpd.conf下面的详细信息:
# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
答案 0 :(得分:0)
现在一切正常。
我只需要从.htaccess中删除以下两行以分配工作台(本地文件夹)
RewriteCond%{HTTPS}已关闭
RewriteRule ^(。*)$ https://% {HTTP_HOST}%{REQUEST_URI} [L,R = 301]