Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Placing keywords in folder or filename. Which is a better location?

         

kgam

3:35 pm on Nov 19, 2008 (gmt 0)

10+ Year Member



Question for our resident gurus...

For ranking purposes, is it better to place keywords in a URL folder or in the filename itself (i.e. www.example.com/keyword/page.html or www.example.com/keyword.html)? Does Google treat these differently than Yahoo, MSN or others? In my experience and tests, I have not seen a difference between these, but I wonder what you have seen.

Obviously thing such as internal link structure, content, inbound links, etc. all play into the ranking, but assuming all else is the same, does placement of the keyword matter or is it simply a style preference?

Receptional Andy

4:30 pm on Nov 19, 2008 (gmt 0)



I'd say that any effect on ranking related to the position of keywords within a URL is highly debatable at best.

However, planning URL structure is a vital task in the creation or maintenance of any website.

The implication of using a folder is that it will contain a collection of related documents, most likely because the folder name reflects some kind of categorisation system - as good URLs do. Remember that URLs are part of the "interface" to your site and should be as user-friendly and as permanent as possible.

If you base your choice of URLs on those kind of criteria, they'll work best for Google too.

kgam

5:10 pm on Nov 19, 2008 (gmt 0)

10+ Year Member



I completely agree with your statement of folders being useful in keeping related documents/files together. That is a good point, but it may or may not be impactful from a URL standpoint depending on how .htaccess or other redirect/display techniques are used.

I am not trying to do anything beyond white hat SEO here (please point out if this starts to approach grey/black hat arenas). We have a large number of pages our our site and on some ecommerce sites the pages are all dynamic php pages which search engines do not weight as heavily as their static friends. The point is that the file locations on our server(s) might not be what is actually displayed in the URL. We are planning to handle redirects in a way that will help things seem better organized and more useable to visitors.

kgam

6:07 pm on Nov 19, 2008 (gmt 0)

10+ Year Member



How about for category pages? Would you recommend they be www.example.com/category/ or www.example.com/category.html

Receptional Andy

7:33 pm on Nov 19, 2008 (gmt 0)



My standard approach (once categorisation has been sorted out - IMO this should always be completed before looking at URLs) is to use folders to denote an important category or subcategory, e.g.

www.example.com/widgets/
www.example.com/widgets/maintenance/
www.example.com/widgets/maintenance/repairs

"repairs" is an example filename (note the absence of trailing slash). Categories that contain (or may contain) several documents are represented as directories (with a trailing slash). The user can work backwards through the URL structure if desired.

I drop the file extensions for filenames since they are not a necessary component of a URL and harm permanence, since they tend to reflect technology, rather than anything useful to a user - even .htm assumes that the URL will always deliver html content, which will not necessarily the case.

the pages are all dynamic php pages which search engines do not weight as heavily as their static friends

Unless the URLs are problematic (e.g. if they create potential for duplication, or are over-long) then you're unlikely to see great search engine benefit from a static vs dynamic URL, although the usability benefits of a planned URL structure are clear and compelling IMO.

the file locations on our server(s) might not be what is actually displayed in the URL

This is fine, and a best practice approach. Your file structure is how you organise your site internally, the URLs are how you present your website to a user.

potentialgeek

9:54 pm on Nov 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



URL folder or in the filename itself (i.e. example.com/keyword/page.html or example.com/keyword.html)?

I like folders because they're scaleable. Google likes full folders on my sites. I find I need a bunch of files (30+) in a folder to give its keyword decent ranking value. (Of course always linking back to the index plus the index of the previous folder.)

keyword1/
keyword1/keyword2/

p/g