AddThis Feed Button
AddThis Social Bookmark Button

When a website goes into development most of the attention is usually paid to the design elements. That's obviously the most important thing, right? The images, the layout, the colors, the navigation, how the user will interact with the site? These are all important elements to consider and necessary for developing a site that provides the best usability experience for your visitors. But what often doesn't get enough attention is the site's directory structure.

When I talk of a site's directory structure I refer to both the file directory and internal link structures. They are two very different things, but in reality they should often mirror each other very closely, but not always perfectly.

Three directory structure types

There are two commonly, yet improperly, implemented directory structures. The first is the flat directory structure.

Overly-Flat Directory Structure
Page URL example:
http://www.site.com/page.html

Many might argue that this is the ideal directory structure but I disagree. Granted, if you have a very small site then a perfectly flat structure like this is the way to go. But once you're dealing with a site that has more than a dozen or so pages, it's time for a little organization.

A flat structure like this gives equal weight to all your site pages in a navigational context. The search engines don't see any hierarchy of importance, nor do the visitors get a sense of any kind of page categorization (though this can be implemented visually on the site). The problem is that once your site starts to grow a bit each page really isn't as important as every other and you need a file structure that accounts for that.

This is where your file directory structure best mimics your visual structure if you've implemented visual separations in your site categories. But before I get to that in more detail, let's look at the other improperly implemented directory structure. Instead of being too flat, this one has too many folders and sub-folders, and creates a more vertical directory structure than is necessary.

Overly-Vertical Directory Structure
Page URL example:
http://www.site.com/dir1/dir2/dir3/dir4/dir5/dir6/page.html

I'm all for staying organized but this is a bit too ADD, even for me. The problem here is that the pages on the lowest level are so far away from the the home page that you're burying them, making them near impossible for the user and even the search engine to find.

That's not to say the search engines won't find them all eventually, but you're not making it easy being so many clicks away from the home page. There are some instances where this can't be helped, especially for very deep sites, but most e-commerce site's don't need to have products more than four clicks away from the home page.

If you already have your directory structure set up this way it may not be a good idea to go and change it. Instead, rework your navigation so that while the physical file structure may appear to be pretty deep, the internal link structure flattens it out a bit, much more like my ideal directory structure below.

Ideal Directory Structure
Page URL examples:
http://www.site.com/dir/page.html
http://www.site.com/dir1/dir2/page.html

In this example every page is two clicks away from the home page. This is a simplification, and not feasible in all circumstances but feasible enough for many websites. Implementing a relatively flat directory structure such as this ensures that good pages are not buried and are easy enough for the user to find starting from the home page.

By setting up your directory structure this way you're also communicating the value of each of these pages. Buy not burying them under piles of directories and visitor click, the search engines understand that these pages are to be weighted as being more important than the others.

Proper Implementation

Before we leave this topic, I want provide just a little bit more information on how to properly implement your directories and sub-directories. By creating directories to group similarly themed pages (i.e. backpacks go in one folder, wheeled bags in another) you have the opportunity to add additional keywords into your URLs. You also have the opportunity to junk up your URLs by going overboard, creating a spammy looking site, so be careful not to do that!

Here is a good implementation of the ideal directory structure above:

Using Keywords in Your Directory Names
Page URL examples:
http://www.site.com/keyword1/page.html
http://www.site.com/keyword1/keyword2/page.html

Here is a real life example of using keywords in the directory names in a way that makes good sense:

http://www.site.com/batteries/motorcycle/sYTX9-BS.html
http://www.site.com/battery-chargers/8-volt/BM12108E.html

You can see by this implementation that we're not "stuffing" keywords into these directories, but using them in a way that makes sense both to the search engines and the visitors. But before you get all directory happy, here is an example of what you don't want to do:

Spamming Keywords in Your Directory Names
Page URL examples:
http://www.site.com/keyword1/page1.html
http://www.site.com/keyword2/page2.html
http://www.site.com/keyword2/keyword3/page3.html

I've seen sites that create a directory for every single page on the site. Don't do that. Directory folders should contain a number of pages that all pertain to a particular topic of the site. If you have pages that don't pertain to any particular topic then put those pages in the root folder, keeping in mind that not every page needs to be in directory folder.

Implementing a sound directory structure will help, not only with basic organization but with establishing the site's overall hierarchy. A good hierarchal structure can play a significant role in how well your site gets spidered and pages re-indexed in the search engines.


Stoney deGeyter founded Pole Position Marketing in 1998 working from a home office and has since turned it into a leading search engine marketing business with a small team of seasoned Reno SEO and marketing experts. Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy on how Pole Position marketing helps their clients expand their online presence and improve online conversion rates.

Stoney is a moderator at the Small Business Ideas Forum, a regular contributor to the Search Engine Guide blog and has a monthly column on Search Engine Land. He posts his SEO and business insights at the E-Marketing Performance blog where you can also find his e-books: E-Marketing Performance: Effective Strategies for Building, Optimizing and Marketing your Website Online and Keyword Research and Selection: The Definitive Guide to Gathering, Sorting and Organizing your Keywords into a High-Performance SEO Campaign.

Stoney is married with five wonderful children and, if away from the computer long enough, enjoys riding his dirt bike, watching DVDs, reading books and spending quality and quantity time with the family.

Comments (13)

Whoops on the first post....

So this:

http://www.site.com/battery-chargers/8-volt/BM12108E.html

is not the same as this:

http://www.site.com/keyword2/keyword3/page3.html

????

Jaan, I'm not sure what you're getting at here. Did I say they weren't the same? Please elaborate.

Right Stoney I am confused. You say this is a good idea:

http://www.site.com/battery-chargers/8-volt/BM12108E.html

then this is a bad idea:

http://www.site.com/keyword2/keyword3/page3.html

Looks the same to me.

Jaan, you have to use that illustration in context. The context here is that there is that there is a directory for every single page on the site. One folder, one page; another folder, another page. Whereas proper architecture is when there are many pages to a folder/directory.

I understand. I think i was taking it to literal.

Spot on. If I have a website about the animal kingdom I would start with URLs such as http://www.site.com/reptiles/snakes/snaketype.html
but there is no need to go all the way down to:
http://www.site.com/reptiles/snakes/big-snakes/phythons/africa/rockpython/african-rock-python.html

Okay, so perhaps at time it's worth going a bit deeper but if you only have 2 pages on snakes, no need to go far too deep.

Spot on. If I have a website about the animal kingdom I would start with URLs such as http://www.site.com/reptiles/snakes/snaketype.html
but there is no need to go all the way down to:
http://www.site.com/reptiles/snakes/big-snakes/phythons/africa/rockpython/african-rock-python.html

Okay, so perhaps at time it's worth going a bit deeper but if you only have 2 pages on snakes, no need to go far too deep.

Interesting idea suggesting we use keyword directory structure, but watching out for going to deep. I think you need to do what makes sense, and is easiest to manage.

I'm a webmaster for www.paysimple.com and I can into a site that was built with most files in the root/ I'm interested in re-building the directory structure but I'm affread of loosing hard earned page rank on the files that I move into a directory. Does anyone know of a way to re-structure a site without hurting page rank?

Thanks,
Josh

@ Josh: I would suggest that you move the files, set up a 301 redirect to pass the link love onto the new page. While you will most likely lose a little of the PageRank by properly structuring your pages and directories you can reap greater benefits in the future.

Ok, sounds good. If I do all of the re-directs with the .htaccess file, is there any kind of limit to the amount of redirects I should do? Maybe it does not matter if I have 100 redirects I'm just not sure.

Thanks

Josh, I've only ran across limits in redirects when I was on a GoDaddy server. Avoid them and you should be fine.

Leave a comment

 



If you'd prefer, you can also subscribe without commenting by submitting your email address here:

Small Business Marketing Unleashed Conference Sponsor



Get Updates

weekly newsletter




Print Ads
Save money on newspaper & magazine ads.

Web Hosting
Windows Hosting and Linux Hosting

Discover Real Success
Earn $1000/week income working at home.

Best of the Web Directory
Submit your Site Today! Best of the Web Directory



Pole Position Marketing

Blogger Profile

Stoney deGeyter founded Pole Position Marketing in 1998 working from a home office and has since turned it into a leading search engine marketing business with a small team of seasoned Reno SEO and marketing experts. Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy on how Pole Position marketing helps their clients expand their online presence and improve online conversion rates.

Stoney is a moderator at the Small Business Ideas Forum, a regular contributor to the Search Engine Guide blog and has a monthly column on Search Engine Land. He posts his SEO and business insights at the E-Marketing Performance blog where you can also find his e-books: E-Marketing Performance: Effective Strategies for Building, Optimizing and Marketing your Website Online and Keyword Research and Selection: The Definitive Guide to Gathering, Sorting and Organizing your Keywords into a High-Performance SEO Campaign.

Stoney is married with five wonderful children and, if away from the computer long enough, enjoys riding his dirt bike, watching DVDs, reading books and spending quality and quantity time with the family.

Video Cast

Sage Lewis Video

Video blogger Sage Lewis keeps you up to date with what's hot in the world of search engine marketing.



www.flickr.com

Stoney deGeyter founded Pole Position Marketing in 1998 working from a home office and has since turned it into a leading search engine marketing business with a small team of seasoned Reno SEO and marketing experts. Stoney pioneered the concept of Destination Search Engine Marketing which is the driving philosophy on how Pole Position marketing helps their clients expand their online presence and improve online conversion rates.

Stoney is a moderator at the Small Business Ideas Forum, a regular contributor to the Search Engine Guide blog and has a monthly column on Search Engine Land. He posts his SEO and business insights at the E-Marketing Performance blog where you can also find his e-books: E-Marketing Performance: Effective Strategies for Building, Optimizing and Marketing your Website Online and Keyword Research and Selection: The Definitive Guide to Gathering, Sorting and Organizing your Keywords into a High-Performance SEO Campaign.

Stoney is married with five wonderful children and, if away from the computer long enough, enjoys riding his dirt bike, watching DVDs, reading books and spending quality and quantity time with the family.

LinksGiving Web Directory