一个简单的问题:是否可以从URL中删除http://
或https://
或至少使用mod_rewrite隐藏它?
例如,是否可以将URL https://example.com
或https://example.com/index.php
显示为example.com
或example.com/index.php
?
答案 0 :(得分:0)
不。 http://
和https://
是ftp
,sftp
和ssh
等协议。
如果URL中未指定,浏览器将通过这种方式默认知道要连接哪个端口。 (http://portquiz.net:8080/)
有关更多信息,请参见: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers