How do i redirect specific tumblr pages?

ian calimbahin picture ian calimbahin · Jun 9, 2011 · Viewed 29.7k times · Source

I want to redirect "http://iancalimbahin.tumblr.com" to "http://iancalimbahin.tumblr.com/home" every time the page is visited. But when I open other pages such as "/tagged/DigitalArts", "/tagged/photos" and other "/tagged" pages, the page still redirects to "/home". How can I exclude certain pages (/tagged) from being redirected?

Answer

Arvin picture Arvin · Jun 9, 2011

Customize your tumblelog and try adding this script:

<script type="text/javascript">
if(location.href == 'http://iancalimbahin.tumblr.com/') location.replace('http://iancalimbahin.tumblr.com/home');;
</script>

Put it right after the <head> tag when you select Custom HTML under Theme.