如何将"http://"和"www." URL永久重定向到"https://"? [英] How to permanently redirect `http://` and `www.` URLs to `https://`?
本文介绍了如何将"http://"和"www." URL永久重定向到"https://"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Google App Engine项目.在这个项目中,我设置了一个自定义域和一个SSL证书.因此,我可以使用https://www.mysite.xxx
,http://www.mysite.xxx
以及裸域mysite.xxx
.
I have a Google App Engine project. On this project I have setup a custom domain and an SSL certificate. Therefore, I can use https://www.mysite.xxx
, http://www.mysite.xxx
and just the naked domain mysite.xxx
.
是否可以使用开发者控制台永久重定向最后两个以始终使用安全的https://
域,还是只需要重定向代码?
Is it possible to permanently redirect the last two to always use the secure https://
domain using the developers console or do I just have to redirect in the code?
推荐答案
因此,您可以在yaml文件中添加安全:始终"
So you can add "secure: always" to your yaml file
这篇关于如何将"http://"和"www." URL永久重定向到"https://"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文