httpd.conf
Options FollowSymLinks
AllowOverride All
LoadModule rewrite_module modules/mod_rewrit
RewriteEngine on RewriteCond %{HTTP_HOST} ^zerobin.org$ RewriteRule ^/?$ "http\:\/\/www\.zerobin\.org\/"
Apache自动跳转到 HTTPS:网页链接
根据以上文档创建伪静态文件: .htaccess(放入网站根目录)
文件内容:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
</IfModule>
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)