简体   繁体   中英

How to redirect blogger to custom domain without asking user?

I set up a custom domain for blog.

在此输入图像描述

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

在此输入图像描述

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM