首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Redirect HTTP to HTTPS automatically?

Redirect HTTP to HTTPS automatically?

提问于 2018-06-29 03:52:39
回答 1关注 0查看 535

我巳安裝SSL, 如何自动将HTTP重定向到HTTPS ?

我巳嘗試修改 .htaccess, 但不成功.

<IfModule mod_rewrite.c>

Options +FollowSymlinks -Multiviews

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

</IfModule>

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档