Blogger Information
Blog 24
fans 0
comment 0
visits 21839
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
.htaccess实现页面自动跳转https
Technical的博客
Original
816 people have browsed it

前提是得有一个80端口的站点,配置生效过ssl  之后要经常备份,phpstudy的自动虚机设置就尽量不要再使用了。

RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post