How to redirect specific tumblr pages?

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 is still redirected to "/ home". How can I exclude certain pages (/ tagged) from redirects?

+4
source share
2 answers

Set up your error log and try adding this script:

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

Place it immediately after the <head> when you select Custom HTML in the Subject section.

+13
source

Using location.replace (url) is a good idea, but you should also add the rel = "canonical" tag to your head section to notify search engines that you prefer to display / home instead of a pure subdomain in the search engine results page.

With this javascript redirection generator, you can create fully compatible redirect scripts. It also contains a hack HTTP referrer under IE. You must also add the html redirect meta tag to the noscript element to redirect browsers with javascript disabled too!

+1
source

All Articles