Redirection from Blogger to Another Blog Engine

by Graham Giller May 18, 2009 11:03

This post really has nothing to do with statistical trading, but I'm including as a record of what I implemented since I could find very little help with this topic on the internet.

The basic issue is to redirect a blog so that new users, old users, and, search engines all get redirected to the new site. The official way is the so called 301 Redirect status returned by a web server. However, that method requires administrative control of the web server — not something that most users of free blog services actually have.

Asecond method is the meta refresh method, in which we insert a META tag, such as the one below, into the HEAD section of the home page. This is something that can be done with a free web service and will instruct a browser client to redirect to a new page. The one I used was:

<meta content="0;url=http://blog.gillerinvestments.com" http-equiv="refresh"/>.
This method will send browsers to the new site and also allow search engines to find the new site, as Google et al. will read the meta tag and follow the link to the new site.

However, it has the drawback in that it directs solely to the blog front page. If a user has followed a search engine's results to a post on the old site, they will loose their position within the blog, and maybe won't be inclined or able to search again to locate the document they wanted to read.

I decided to deal with this by adding a JavaScript function to be loaded by the BODY tag's onload event. This can be used to implement a redirect because web browsers respond to assignment to the window.location object's href item by loading the new URL.

<script>
function redirect_it()
{
  window.location.href=(document.title=="Statistical Trader"?
    "http://blog.gillerinvestments.com":
    "http://blog.gillerinvestments.com/search.aspx?q="+
      escape(document.title.slice(20)));
}
</script>

This script is triggered by the onload event as follows

<body onload="redirect_it();">

What the function does is a little application specific. In my implementation, it takes the page's title data and passes it to the search function on my new blog site. As I loaded all of my previous posts into the new blog, that should find the page that a redirected user was looking at. It would be better to mangle the permalinks, but my new system (BlogEngine.NET) does not use compatible slugs. As a final wrinkle, it just goes to the front page if the user was just looking at the front page.

Hopefully, this will not lose too many readers since all they need to do is make one more click to get to new location of the page that they had actually wanted to look at.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Internet

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen | Modified by Mooglegiant



RecentComments

Comment RSS

About the Author

Graham Giller - Headshot GRAHAM GILLER
Dr. Giller holds a doctorate from Oxford University in experimental elementary particle physics. His field of research was statistical astronomy using high energy cosmic rays. After leaving Oxford, he worked in the Process Driven Trading Group at Morgan Stanley, as a strategy researcher and portfolio manager. He then ran a CTA/CPO firm which concentrated on trading eurodollar futures using statistical models. From 2004, he has managed a private family investment office. In 2009, he joined a California based hedge fund startup, concentrating on high frequency alpha and volatility forecasting. A detailed resume is available.

Pages


Disclaimer

Nothing on this site should be construed as a reccommendation to buy or sell any specific security nor as a solicitation of an order to buy or sell any specific security. Before making any trade for any reason you should consult your own financial advisor. The author may hold long or short positions in any of the securities discussed either before or after publication of an article mentioning such a security.

Copyright Notice

All post on this blog are © Copyright property of Giller Investments (New Jersey), LLC. All comments are the property of their respective authors and neither the author or this blog nor any entity associated with him are responsible for or accept any responsibility for their content. Offensive comments and spam may be removed at the authors discretion.

Data provided on this blog or through links to this blog are either property of Giller Investments (New Jersey), LLC or publicly available or derived from data that is publically available. Any data that is proprietary to Giller Investments (New Jersey), LLC is published here for the public interest and may be reproduced for private research or in public forums provided that suitable attribution and acknowledgement of ownership is made.

Privacy Policy

We use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.