More Info »
Search engine optimization - part 1
About this mini guide
Although this mini guide describes mostly "evergreen" methods of website optimization for search engines, some of these described methods could be outdated. Since search engine ranking algorithm is changed on a daily basis, and after every search engine update something other is favored, take these examples and methods as information only. Don't follow them, research.
How to optimize directories and file names for search engines
What to use - hyphens or underscores? Or dots, or plus sign, or slashes, what can be used to replace space in domain name, directory or filenames?
Think like search engines. If you own search engine and when you want to give relevant results for visitors, will you tweak ranking algorithm to exclude spammers. Yes.
And that is the secrets of good ranking. Monitor spamming techniques and avoid using the same on your sites. Those methods can work some time, but, when everybody starts to use exactly the same method, that will trigger spam filters and your site will sink with other spammy sites.
Spammy domain names (keyword-keyword-keyword-keyword.com) are history. Search engine spam filter is triggered whenever domain name contains more than two or three words separated with hyphens. Keyword in domain name is still important, what is not important is, there is no difference if words are separated with hyphen or joined in one word (myspace.com and my-space.com) Use domain without hyphens, with keywords included.
To all who are asking questions about dots in domain names. It is not separator like hyphen is. keyword.domain.com is not the same as keyworddomain.com. "keyword" is the subdomain of domain.com and has less weight for search engine ranking than keyworddomain.com. Keyword in subdomain doesn't have weight as before, only large sites can benefit from subdomains (see about.com)
Yes, it is possible to make "keyword1.keyword2.domain.com" subdomain, just enter keyword1.keyword2 as subdomain name (where available) instead of one word subdomain. But, again, that is subdomain keyword stuffing, and soon or later that will be considered as spam.
Subdomain feature was abused from spammers too, but still can be used. Say, instead of two words domain. Things are changing daily, no wondering if that becomes popular again. One problem is that most of one-word domains are already taken from cybersquatters. So, it is almost impossible to find a good looking one-word domain what can be combined with subdomain.
With WWW or without WWW in domain name?
www.yoursite.com and yoursite.com are two different sites, that is how search engines are still looking at your domain. Always use www.yoursite.com in linking. Using Mod_Rewrite you could add 301 redirection to .htaccess (if apache server) to redirect requests for yoursite.com to the www.yoursite.com. You will be surprised how many pages will be redirected to WWW version. That will boost Google page rank for your site, too. This below is tested and it works.
Add above to .htaccess file and TEST it. Enter domain without WWW, and you should be redirected to www.yourdomain.com.
Directories and filenames - hyphens or underscores?
Which one is looking natural? Last one? True.
If you are in doubt, use hyphens (dashes) to separate word in page name. However, many dynamic websites are using htacess and mod_rewrite to generate search engine friendly URLs, using title of page as page name (hyphens used as separator).
Although dynamic pages can be indexed todays, urls with many parameters and especially sessions can be a problem. Session id in url could cause duplicate content problem. If your dynamic pages are not indexed, however, if you want descriptive and url with keywords, you can use htaccess and mod_rewrite to transform that ugly url to the search engine friendly url. Use keywords in parameters, or use Mod_Rewrite (apache server) to make "static" pages, i.e. spiderable site. Avoid sessions.
In these examples below, there is no doubt for visitor where to look for something.
Here is logic (I hope, these are only examples) used instead of keyword stuffing. Using keywords in url and filename, but logically, can make happy search engine and visitors (if content is useful).
These urls below (examples only, not real urls) are examples of irrelevant path (url) and keyword stuffing (second example) without any benefit for user, behind those urls you can expect only unuseful content.
I think that you don't need additional clarification.
Who is the winner here?
Visitor is looking for recommended wheels for his Honda car.
All three will get visitors, maybe the last one has little advantage. With word honda in domain name it is looking like official site and page name reflect exactly what visitor is looking for.
Along with displayed title and description, url is displayed too. Naming directories and files using keywords and logic, can help you to get more targeted visitors than sites with better position at search engine results pages (SERPs)
Keyword in URL could help you to get better ranking, but, keep in mind that you need to impress visitor, not search engine.
So, go into their skin. If your site contains useful information for visitor, he will stay on site, if not, he will back to search engine. He is tracked and search engine then knows that your site has nothing to offer. Bad for you.
Few more examples, only for little better understanding: