secret
Last active

Canonical Blogger redirects, should imitate a 301 redirect from blogger

  • Download Gist
gistfile1.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<head>
 
<title><$BlogPageTitle$></title>
 
<Blogger><ItemPage><link rel="canonical" href="http://www.rugbydump.net/index/reverse_g/?s=<$BlogItemPermalinkURL$>" /></ItemPage></Blogger>
<MainPage><link rel="canonical" href="http://www.rugbydump.net/" /></MainPage>
<Blogger><ArchivePage><link rel="canonical" href="http://www.rugbydump.net/index/reverse_g/?s=/<$BlogItemArchiveFilename$>" /></ArchivePage></Blogger>
 
<script type="text/javascript">
rd_path = window.location.pathname + window.location.search
 
rd_next_path = 'http://www.rugbydump.net/index/reverse' + rd_path;
 
<Blogger><ItemPage>window.location.href = rd_next_path</ItemPage></Blogger>
<MainOrArchivePage>window.location.href = rd_next_path</MainOrArchivePage>
 
</script>

Where should I put the code???
What words must I change???

Thanks!!!!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.