Redirect Welcome!

Everyone, today is Redirect Day! While I’m working on redirection from the Blogger site, please talk amongst yourselves!

~ Ana


Update: The redirect code for individual posts on Blogger is now working for most links. This was actually very hard to accomplish, because Google has changed their API, so all the old redirect code available online is now wrong, which means that we had to write redirect code pretty much from scratch. And when I say “we”, I mostly mean Husband. The redirection now works for most pages but not all, because Blogger yanks small articles like “a” from permalinks, but WordPress does not. So, for example, the last Board Business post redirects; the “So you’ve just been turned into a zombie” does not. I’m afraid there’s nothing to be done for it, and that the redirection is as good as it’s going to get.


Update 2: For posterity and for other people struggling with the evil that is the Blogger API, this is what we ended up with. Start here. The updated individual post redirect code should be:

<b:widget id=’Blog55′ locked=’true’ title=’Blog Posts’ type=’Blog’>
<b:includable id=’main’>
<b:if cond=’data:blog.pageType == “item”‘>
<b:loop values=’data:posts’ var=’post’>
<script type=’text/javascript’>
var new_page=’’;
var permalink = ‘<data:post.url/>’;
var timestamp = ‘<data:post.dateHeader/>’;
timestamp = timestamp.split(‘, ‘);
timestamp = timestamp[1];
timestamp = timestamp.split(‘ ‘);
timestamp = timestamp[1];
new_page = permalink.replace(/slacktiverse\.blogspot\.com/,new_page);
new_page = new_page.replace(/\.html$/,”);
timestamp = (timestamp.length==1)? ‘0’+timestamp:timestamp;
var output = new_page.substr(0,42)+’/’+timestamp+new_page.substring(42)+’/’;
document.location.href = output;

11 thoughts on “Redirect Welcome!

  1. anamardoll November 10, 2012 at 3:06 pm

    And because I am quite silly, I accidentally deleted the earlier welcome and comments when I was pushing this up to the page top so that confused people would be less confused on redirect. I apologize to the people whose comments were wiped: Chris and Storiteller.

  2. christhecynic November 10, 2012 at 3:28 pm

    I’ll live

  3. Timothy (TRiG) November 10, 2012 at 4:35 pm

    There should be a way around that, as WordPress allows you to edit the slug (the old slug is retained as a redirect). So for the couple of articles whose URLs don’t match, the WordPress URL can be tweaked.


  4. FIredrake November 10, 2012 at 4:48 pm

    RSS feeds swapped over (yes, I know I don’t have to, but I’m happier not forcing a redirect each time) and things appear to be working at my end. Yay Team Slacktiverse including Ana->Husband!

    I suspect that to achieve full redirects you could have a lookup table of all the blogspot urls mapped to wordpress urls. I’m told that all Javascript objects act like associative arrays, something like

    obj[‘old-url’] = ‘new-url’

    which one could plug into the code above,


    One thing to watch for – blogspot loves to localise domain names in an utterly pointless way, so for example if I go to a page on the old site it’ll appear to the redirect script as “” not “”.

  5. anamardoll November 10, 2012 at 4:53 pm

    @TRiG, by george, you’re right. Fixed for the zombie post. I’m not going to link dive the rest right now; if someone can get me a list that would be helpful, but otherwise I shall do it later. Thank you, TRiG. 🙂

  6. anamardoll November 10, 2012 at 4:53 pm


  7. Brin November 10, 2012 at 8:41 pm

    I’m not going to link dive the rest right now; if someone can get me a list that would be helpful, but otherwise I shall do it later.

    Sure thing.

    Hmm, I wonder…*test*
    It’s as I…well, maybe “feared” is a bit strong. It’s not just “a” and the like we have to worry about; it’s truncation. The WordPress URL for ‘”Don’t Worry About Thinness, Just Eat Healthy Food and Exercise”: A Righteous Smackdown’ contains every word of the title, but the Blogspot URL stops after “eat”. This breaks proper redirect and is trickier to look for.

    I think I’ll try digging around in my browser history; it should have every Blogspot!Slacktiverse URL in there. Be back soon.

    P.S. Be warned that refreshing the page (such as when checking to make sure nobody else beat you to what to you were about to say) is enough to lose the post you were writing. (Luckily, I had the post in my copy-paste buffer for just such an occurrence.)

  8. Brin November 10, 2012 at 9:11 pm

    In possibly some sort of order, maybe:

    “Community reccing: The Lunaverse”
    “Post/Open Thread: Transformative art/commentary/stuff”
    Every “This Week in the Slacktiverse” post (Nov 3/4, Oct 27, Oct 20)
    Relatedly: “This Month in the Slacktiverse” and “This [period of time] in the Slacktiverse”
    “Open Thread: U.S. Election” (Blogspot treats the period between “U” and “S” as if it weren’t there, WordPress treats it as a space)
    “Late Board Business Post, October 26th, 2012” (for the sake of completeness; I doubt anyone will care)
    “Because I was (never) a slave in Egypt”
    “Deconstruction Roundup, sauntering vaguely closer to reality”
    ‘”Long live the- wait. Why is it ‘live’?” — Or how I learned to stop worrying and love the subjunctive’
    “Candle in the Dark”
    “Deconstruction Roundup, nudging closer to reality” (not to be confused with sauntering towards it)
    “Idea for a possible regularly scheduled post”

    I think that’s all of them. (It’s actually quite a few posts that need manual tweaks.)

    Also, while we’re at it, the Board Business post from November 8th claims to be from the 11th.

  9. The Slacktiverse November 11, 2012 at 8:23 am

    […] moved.  First posts since we’ve moved are a welcome here, and an article called “Not mean; but […]

  10. Silver Adept November 11, 2012 at 9:17 am

    Hooray for redirection!

    …it also shouldn’t take that kind of code diving. Insert common standards rant here.

  11. storiteller November 11, 2012 at 1:05 pm

    No worries about removing my comment by mistake. It just said how much I appreciate Ana taking the time to set this up and supporting this community.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: