Showing posts with label Blogger Hack. Show all posts
Showing posts with label Blogger Hack. Show all posts

Redirect Blogger Page to Another URL or Website

Blogger Redirect to Another URL or Website

This tutorial will guide you on redirecting your blogger blog to an external website. By using this method, you will be implementing 301 redirect to your whole blog, which will redirect the visitors, and bots to an external website so before you implement this be very sure about it. Usually this method is used by the bloggers when they manage to receive decent number of visitors on their blog and intend to take it to the next level so they hop on to self-hosted WordPress.
However, if you are looking for a solution to fix broken links problem then you should probably apply custom redirects in blogger. On a precautionary basis, I would suggest to take a backup of your blogger template and follow these steps:

Step 1: Login to your blogger account.
Step 2: Go to the template and edit HTML
Step 3: Now press (CTRL + f) to find the <head> section of your template.
Step 4: Copy the following code and place it within the head section of your blog’s template.


  1. <script type='text/javascript'>
  2.   var d='<data:blog.url/>';
  3.   d=d.replace(/.*\/\/[^\/]*/, '');
  4.   location.href = 'http://www.leakzilla.com';
  5. </script>

Replace my blog’s URL with yours in the above-mentioned code and click on save template. Now all pages on your blog will be redirected to an external destination.

Redirecting a Specific URL to an External Website

If you are intending to redirect a specific page to external website rather than the above-mentioned code is not for you however follow the same steps as of the above method but use the following code:


  1. <script>
  2. if(window.location.href == '<strong>Page URL</strong>')
  3. {
  4. window.location="http://www.leakzilla.com";
  5. }
  6. </script>
Replace the Page URL with the URL of the page, which you want to redirect and replace my blog’s URL with the destination URL where you wish the page to be redirected.

Time Based Redirection

You might have seen pages redirecting to the main source of information after few seconds, this technique is mostly used in promotional activities. However, if you are looking forward to do something of that sort use the following code.

  1. <meta content='5;url= http://www.leakzilla.com' http-equiv='refresh'/>


Replace the URL of my blog with yours and place this code in the head section of your blog by following the above-mentioned steps. If you wish to increase or decrease the time of transition, you can do it by changing 5 which is 5 seconds actually. Moreover, this code will redirect your whole blog to the external destination.