This Post
  • HOME PAGE
  • ABOUT
  • ARCHIVES
  • SITEMAP
 
« The EntreCard Meme How To Copy Your WordPress Database »
 
22
Dec

How To Find The Missing Link

by admin

Broken PermalinkI’ve had a couple of emails and a blog comment on my previous post WordPress setup, Themes and Plugins about changing the Permalinks.

Before I get into the permalinks I would like to mention a little about planning. You have a reason for starting a blog in the first place. It could be about something specific like SEO in WordPress or something more nebulous like make money online. Either way, I suggest that you take a large piece of paper and in the middle of it write your topic in a balloon. Around that, write topics that come to mind when you think of your topic.

In the make money online example, sub topics could be building traffic, Link building, Affiliate marketing etc. These are still broad topics. Then from each of these, you do the same exercise, writing topics around them.

In this simple example, the first set of topics are your categories, all other topics below them can then be your tags. This will do a couple of things for you. With this kind of planning:

  • It reduces the need for changing your categories.
  • It gives you a ready made set of topics to write about.
  • It gives your blog direction and focus.

This isn’t to say that you can never change the direction of your blog, but if you do it will not be because you didn’t think about. When you set up your blog, you configure the Permalinks to use categories and post titles, not the date. This makes the URLs a lot more SEO friendly and useful.

Changing Permalinks

If you change your Permalinks after you have started posting then two things will happen:

  • Your posts will "disappear", they will still be there but you and your visitors cannot access them.
  • The search engines will not be able to find them, you will get an Error 404 - Not Found message. To fix this you need to create a 301 Redirect for each page.

An Example

Say you have a page at
http://site.com/2007/10/10/my-great-post/
You change the permalink so that the category was used instead of the date, this gives:
http://site.com/goodstuff/my-great-post/
The 301 Redirect springs into action every time a request is made for:
http://site.com/2007/10/10/my-great-post/
and redirects the visitor to:
http://site.com/goodstuff/my-great-post/

Solutions

If you are using WordPress there is an easy solution, the Permalinks Migration Plugin. This will create the 301 Redirects for you.

If you you are using Blogger then you will need access to your .htaccess file.

What is the .htaccess file?

When a request is made for a page your web server first looks for this file. It contains instructions regarding security, errors, redirects etc. You can create or edit it with any text editor and you will find it in the home or root directory of your web server.

Adding the Redirect

The syntax for adding a redirect is:
redirect 301 /oldpath/oldfile.htm http://yoursite.com/newpath/newfile.htm
where:
/oldpath/oldfile.htm is where the page was originally found.
http://yoursite.com/newpath/newfile.htm is the new full path to the page.

So to change:
http://site.com/2007/10/10/my-great-post.htm
to:
http://site.com/goodstuff/my-great-post.htm
You would use:
redirect 301 /2007/10/10/my-great-post.htm http://site.com/goodstuff/my-great-post.htm

You would do this for each post and it should be sufficient if you have only a handful of posts.

As you can see, when you change your Permalinks, it causes more work for your web server and introduces a slight delay before the page is displayed. With a little forethought and planning, you can avoid this.

Related posts:
  1. How To Create A Wordpress Theme - Part 5
  2. How To Copy Your WordPress Database
  3. WordPress setup, Themes and Plugins
  4. Install a web server and Wordpress
  5. Review - Rapid Action Profits
Subscribe to RSS feed
stumble me

Tags: .htaccess, 301 redirect, Affiliate Marketing, change your Permalink, error 404, link building, seo, Traffic, web server, wordpress
Category wordpress | Print This Post Print This Post |

There are 4 Comments

  1. How To Find The Missing Link | CK Marketing…

    There comes a time in some blogs when you have to change your permalinks. This is often because of a lack of planning at the start of the blog, a change in focus or a change of blog software.

    When the permalinks are changed, your posts “disappear” f…

    Scribbled by bloggingzoom.com on 22/12/07 at 12:51 am
  2. Thanks for the info. I had wondered what would happen if I chaznged my permalinks but, I was to afraid to do it because I didn’t know what would happen.

    Thanks

    Scribbled by Not John Chow on 22/12/07 at 1:31 am
  3. Truly an awesome blog! Just wanted to tell you that Its there in the Phase 1 of Awesome Blog List

    Abhinav Sood

    Scribbled by Abhinav Sood on 24/12/07 at 8:08 am
  4. @Not John Chow: This is why I’m doing this series, knowledge conquers fear ;)

    @Abhinav: Thx guy :)
    Colin King’s last blog post..How To Find The Missing Link

    Scribbled by Colin King on 24/12/07 at 1:35 pm

What are your thoughts?

What do you think? Leave a comment. Alternatively, write a post on your own blog, this blog accepts trackbacks [trackback].

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Please read the Comment Policy before commenting.

  • Check out one of my favourite sites

    Changes Daily. This is not an Ad!



  • Categories

    • Affiliate Marketing
    • Blogging
    • General
    • Guest Posts
    • List Building
    • Monthly Reports
    • Product Reviews
    • Social Networking
    • Traffic
    • Wednesday Links
    • wordpress
  • Recent Posts

    • A New PC05.11
    • Get More Traffic From Your Tutorials05.8
    • A Surprise In The Mail04.30
    • How To style your Comments - Part 304.28
    • How to Style Your Comments - Part 204.26
    • How To Style Your Comments - Part 104.23
    • The March $100 winner, a problem and a rant04.21
    • Valid XHTML For The EntreCard Widget04.15
  • Bookmarks

    Add to Technorati Favorites
  • Top Commentators

    • Mike McMahon (1)
 

This site's design and contents are ©2007-2008 by CK Marketing - All rights reserved Worldwide

This blog is protected by Dave's Spam Karma 2: 1928 Spams eaten and counting...