How to permanently redirect `http://` and `www.` URLs to `https://`?

后端 未结 6 1178
粉色の甜心
粉色の甜心 2020-12-24 11:34

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

6条回答
  •  春和景丽
    2020-12-24 12:07

    So you can add "secure: always" to your yaml file

    https://cloud.google.com/appengine/docs/python/config/appconfig?hl=en#Python_app_yaml_Secure_URLs

提交回复
热议问题