Naked domain on https not getting forward to www

61 views
Skip to first unread message

PSC Guru

unread,
Jun 26, 2020, 1:04:33 PM6/26/20
to Google App Engine
Hi , 
    I have an appengine web app. 
    Domain I have in Godaddy . 
    I added domain in Appengine => Setting => Custom Domains .
    I Added CNAME as www with ghs.googlehosted.com
                  A  with 216.239.32.21 ,216.239.34.21, 216.239.36.21 216.239.38.21 

I am able to redirect  http://mydomain.in   to http://www.mydomain.in
but not able to redirect  https://mydomain.in   to https://www.mydomain.in

I tried adding wwwizer   ip address as  A    @    174.129.25.170    - It also didnt work

Can some one help in how to handle the naked domain forward for https   

Thanks and regards
Sachin 


aa.png


sneacsu

unread,
Jun 29, 2020, 11:12:27 AM6/29/20
to Google App Engine
Since is a naked domain you can or need to use a SSL redirect service, there are some free ones like the CloudFlare one.

In case you choose the us CloudFlare these are the steps to make it work:
- Add your domain and switch your name servers to CloudFlare (signup process walks you through it)

- Once added goto CloudFlare Settings and down to SSL. Change the setting to 'Full SSL (Strict)' this requires you to have a valid cert on the subdomain your redirecting to (SNI works fine).

- Go back to your websites list, select the domain again and on the options goto page rules. Add a 'Forwarding' rule that redirects https://yourdomain.com/* to https://www.yourdomain.com/$1 (replace www with any subdomain), make sure the redirect is set to 301.

- Save your settings and sit back and wait for everything to propagate.
Reply all
Reply to author
Forward
0 new messages