Search code examples
http-redirectblogger

How to redirect blogger to custom domain without asking user?


I set up a custom domain for blog.

enter image description here

Problem: when I hit old blog URL, Blogger asks me to confirm redirection to new domain.

enter image description here

I don't want my readers to say 'Yes' every time, ideally not even once. How to overcome this?


Solution

  • I did not have to do anything. All I did was to wait one day. One day because I checked it the next day. This may not be the exact time required for changes to take effect.

    However, if the problem does not go away automatically as in my case, I would like to highlight solutions from couple comments above (because someone once told me many readers don't read comments here on SO).

    Comment by @mehulmpt

    instead of doing it from the settings, maybe in the template you can add: location.href = "http://yoursite.com"; just after

    Comment by @Prayag Verma

    As the custom domain is not hosted on Blogger, this warning will keep on showing. A much better way would be to unlink the domain from the dashboard & then implement what @mehulmpt suggested. Also, the SE site which would be suited for this question - webapps.stackexchange.com/questions/tagged/blogger