Blogger / Blogspot: Snippets and tricks to use on your free websites

How to redirect Blogger subdomain to a custom URL/website?

This is a simple trick and works very well. This is useful if you want your Blogger address to send each visitor to an internal page on the same site or to an external site.

<script>if(window.location.href == "https://subdomain.blogspot.com") { location="https://hakesh.com"; }</script>

Using this XML meta parameter you can do the redirection after a specific time and not immediately:

<meta content="5;url=https://hakesh.com/" http-equiv="refresh"/>