Things you need to know about Permalinks
August 22, 2008
Permalinks are a great way to optimize your blog post URLs. If you read my article on Wordpress Permalinks, you may be using the same permalink structure that I use, namely this one:
/%category%/%postname%/
With this type of permalink structure, your post URLs will look like this:
http://affiliate-minder.com/wordpresstutorials/install-wordpress-theme/
This is an actual URL from this site. See that the %postname% is replaced with the name of the post, and the %category% is replaced with the name of the category. I know, its fairly obvious, but bear with me.
What if you used nested categories?
Suppose you have a category called “blue-widgets”, that you setup to be a sub-category of the “widgets” category?
Well the post URL would now look like:
http://mydomain.com/widgets/blue-widgets/the-post-name/
See how Wordpress includes the full category path to your post?
That’s great for SEO, especially if you create your categories carefully to make sure that categories are grouped into “silos”, where you have the main category at the top, and all of the highly related categories as sub-categories of that main one.
However, there is one thing that you need to be aware of.
Wordpress sets up “category” pages, which all posts in that category are posted to. An example is the Wordpress Tutorials category on this site. Click the Wordpress Tutorials link in the top nav bar.
You are taken to this page where you can see the most recent posts in the category:
http://affiliate-minder.com/category/wordpresstutorials/
Look at the URL. Because this is a category page, the word “category” is used by default in the URL before the actual category name (“wordpresstutorials”).
Now there is a plugin you can use called “Top Level Categories” that will remove the “category” word from these “category page” URLs.
The above URL would then look like this:
http://affiliate-minder.com/wordpresstutorials/
Much better, right?
Well….. There are some limitations to this plugin, and one is that it wont work when your permalink structure is set to:
/%category%/%postname%/
Why? I have no idea. But if you use the same permalink structure I do, this plugin is no use.
You do have another option. You can specify a word to be used instead of the word “category” in these category page URLs.
Login to your Wordpress Dashboard, and click on the Settings –> Permalink menu.
(Click to enlarge).
There is a box where you can enter the Category base. If this is left empty, Wordpress will use the word “category” when displaying category pages.
My advice here is to insert a word that covers your main niche. That way all of your category pages will have an extra keyword in them.
For example, it your site was one dogs, you could enter the word “dogs” (or maybe if your domain already had that word in it, you could enter “canine”, “mans-best-friend”, or something similar, but preferably a word or phrase that is searched for).
As with all things SEO, don’t overdo this optimization. If you cannot think of a word to use, simply leave it blank.
Wordpress Permalink Structure
August 1, 2008
Since we want to create a well-structured web-site, we need to set Wordpress up so that it creates SEO friendly URLs for your posts. To do this, we need to edit the Permalink options.
Literally speaking, a permalink is link that doesn’t change. e.g. when you write an article for your website, it is given a URL. This URL is what you will link to if you reference your article somewhere else on the web. You certainly do not want the URL to change - it needs to be permanent. Get the idea?
Permalinks are the permanent links to your articles. In Wordpress, we can configure how those will look.
To change the permalink structure for your site, click on the Settings menu, and select Permalinks:
You will be taken to the Permalink screen that gives you various options for permalink structure. Here are the first 4 with examples of what your links will look like:
http://mydomain.com/blog/?p=123
http://mydomain.com/blog/2008/08/01/sample-post/
http://mydomain.com/blog/2008/08/sample-post/
http://mydomain.com/blog/archives/123
We are interested in the 5th type of permalink - Custom, because it allows us to define how we want the links to be organised. There are a number of variables you can use to define your permalink structure:
%year%
- The 4 digit year of the post
- %monthnum%
- Month of the year
- %day%
- Day of the month
- %hour%
- Hour of the day
- %minute%
- Minute of the hour
- %second%
- Second of the minute
- %postname%
- The name of the post (words separated by a dash)
- %post_id%
- The unique ID number of the post
- %category%
- The category of the post.
- %author%
- Author name.
You can combine these variables into a custom permalink structure. Most of them are not very useful for an affiliate site. What is useful to use is the %postname% and %category% variables.
Select , and enter the following:
/%category%/%postname%/
Scroll down and save your changes. You can ignore the optional settings at the bottom. Now, your posts will look something like:
http://mypetshop.com/dogs/beagle
Where beagle is the name of the post, and dogs is the category you posted it in.



