——Rex's Blog,Westlife歌迷,爱好Linux
有些时候为了安全,可能需要使用HTTPS访问,那么PHP文件中加上以下代码
if($_SERVER['HTTPS']!="on") { $redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header("Location:$redirect"); }
BTW:用HTTPS需要独立IP和SSL证书。恩,你懂的 ^_^
转载请注明:Living Beyond The Clouds 生活 学习 互联网[http://westlife.la] 本文链接地址: http://westlife.la/909.html
三坊七巷
天使
如果云知道
思念
搬家
教程
杂文
漏洞
自定义PHP.INI
花开的诺言
随想
青春
alipay
Blog
Dreamhost
Http Error
Linux
Nginx
Opera
Our Story
Rewrite Rule
The Love Album
WHMCS
WinRAR
Wordpress Nginx (4)
Our Story (20)
The Love Album (12)
教程 (15)
杂文 (6)
随想 (21)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
来顶一下,呵呵不错,学习了,周末马上到了祝周末愉快!