其他网站相关知识您现在的位置是:主页 > 其他网站相关知识 >

Apache使用伪静态从http跳转到https

2023-02-25 16:13:45其他网站相关知识 39人已围观

apache的伪静态是通过.htaccess实现具体代码如下


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


联系微信