Redirect from http to https

51 views
Skip to first unread message

Himanshu Kapoor

unread,
May 10, 2016, 5:40:45 AM5/10/16
to Google App Engine
Hi

I have deployed an site on cloud on Nodejs environment. I want when user open my domain like: <my-domain.io> it should redirect it to https://my-domain.io.
I have already attached SSL certificate with my custom domain in App engine.

I am newbie here, help will be much appreciated.

Nicholas (Google Cloud Support)

unread,
May 13, 2016, 5:32:48 PM5/13/16
to Google App Engine
Thanks for posting your questions here. Have you had a change to review the app.yaml Reference article? In it, you can see the use of the secure attribute for handlers. Setting the secure attribute to always will cause users to be automatically redirected to using https. Associating it to all URLs with url: /.* should have that rule apply to every URL at your domain.

Hope this helps!
Reply all
Reply to author
Forward
0 new messages