Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Canonical Blogger redirects, should imitate a 301 redirect from blogger

View gist:9ee54b15a3a7627e9f6b
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!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.