WordPress.org

Ready to get started?Download WordPress

Forums

Permalink structure with postname.html for Blogger redirect (7 posts)

  1. nudge
    Member
    Posted 2 years ago #

    Hello,

    I'm wondering if using /%year%/%monthnum%/%postname%.html as a permalink structure is something that could cause problems in the long run in WordPress. Main concern, of course, is the additional .html at the end. I've tested it and it does work.

    I want to use this structure for post redirect for a Blogger to WordPress migration (which was using its own custom domain). Unfortunately none of the "Blogger to WordPress redirect" plugins seem to be doing the trick. I came across the above permalink structure on a couple of the plugin site and was wondering if this was a viable solution.

    Any help or suggestions would be appreciated!

  2. hardcore-raver
    Member
    Posted 2 years ago #

    You can do 301 redirects in your .htaccess. It's a bit tedious if you have a lot of posts though. Redirect your old urls to the new ones. I have to run off to work now and I'm posting from a phone. Unless someone beats me to it I'll give a more detailed description by tomorrow morning if you have any problems. (Smiles)

  3. hardcore-raver
    Member
    Posted 2 years ago #

    O.K.

    First things first.

    Log into your blogger dashboard and click "settings". You will see at the top "Import blog - Export blog - Delete blog". Click on "Export". Then click "Download". Download it where you can find it, it will look similar to this "blog-11-10-2011.xml". This is a back up of your blogger posts, comments, and other meta data should things go wrong.

    Then in your wordpress admin panel click "tools" then click "import".

    Next you will be given options as to what importer you want to use, in your case that would be blogger. Click on the "Blogger" link and install the plugin. After install click "Activate and run".

    You have to authorize the plugin to access your blogger account. Just follow the instructions.

    Next you want to do "301 redirects". I didn't know there was a plugin for that, you can try a plugin if you like. I prefer the manual method, but as I said it's tedious if you have a lot of posts and pages.

    This is what my 301 redirects look like in my wordpress .htaccess (Yours will depend depending on your choice of permalinks)

    redirect 301 /2011/10/my-blog-from-blogger.html http://www.example.com/2011/my-blog-from-blogger/

    You have to know every one of your old urls and you have to know what your new urls are going to be. And for every url you have to create an individual "301 redirect" for each.

    In my situation, I had a custom domain at blogger. I pointed my domain away from blogger and unto my new hosting account, then I did the import. I only had seven posts and 10 pages so it was easy to do only 17 301 redirects.

    I hope this helps.

  4. nudge
    Member
    Posted 2 years ago #

    Thanks so much for the response, hardcore-raver.

    It's definitely a great solution for a small site. I hope someone will benefit from your detailed explanation. Unfortunately, the site I am working on has 1200 posts (site move was years overdue).

    If the permalink structure I originally mentioned won't affect WordPress in any way, I'll probably leave it like that. I just want to be sure nothing will "explode" one day. :)

  5. hardcore-raver
    Member
    Posted 2 years ago #

    Just for my own reference, what exactly did you do? Did you switch your domain from blogger to your wordpress intallation? And if so, are trying to mirror the posts from your existing blogger account with out physically importing them? I would need that info to share any advice.

    The 301 redirects I speak of are after you physically get all of your old blogs from blogger converted to wordpress and imported. Once a site is moved and the urls change it's wise to do the 301 redirects because all your links in the search engine would not be pointing at your new site. And it's not a good idea as far as seo to have two site with the exact same content. But like I said, I don't know your exact set up.

    Once I switched my domain over to my wordpress installation, I imported them using that plugin I told you about. I then deleted all my blogs from blogger. (I madw a backup from blogger before deleting them).

    Then I found that all my links in google gave a 404 error. So I had to do the 301 redirects. (Smiles)

  6. weeboludo
    Member
    Posted 2 years ago #

    In my case, the URL's aren't easily translated. This post seems to have a pretty accurate description of how Blogger generats urls. Blogger seems to omits the words 'a', 'an', 'the' & limits the slug length.

    I do not know if this is consistent across all blogger blogs, the one I am migrating uses a personal domain name.

    The blog I am migrating has almost 300 posts, so I'd rather not do this by hand. I thought I saw somewhere that it should change the URLs if pretty urls are enabled, but this does not seem to be the case for me.

  7. rahul247rocks
    Member
    Posted 1 year ago #

    How to do the redirect in .htaccess

Topic Closed

This topic has been closed to new replies.

About this Topic