Forum Moderators: Robert Charlton & goodroi
...wattsnew asked if there was a technical guide on how to handle www vs. non-www, relative vs. absolute linking, and links to different pages such as / vs. index.html vs. default.asp. My rule of thumb is to pick a root page and be as consistent as possible. I lean toward choosing http://www.yourdomain.com/ but that's just me; http://yourdomain.com/ would work as well. Then I recommend that you make things as simple as possible for spiders. I recommend absolute links instead of relative links, because there's less chance for a spider (not just Google, but any spider) to get confused. In the same fashion, I would try to be consistent on your internal linking. Once you've picked a root page and decided on www vs. non-www, make sure that all your links follow the same convention and point to the root page that you picked. Also, I would use a 301 redirect or rewrite so that your root page doesn't appear twice. For example, if you select http://www.yourdomain.com/ as your root page, then if a spider tries to fetch http://yourdomain.com/ (without the www), your web server should do a permanent (301) redirect to your root page at http://www.yourdomain.com/
So the high-order bits to bear in mind are
- make it as easy as possible for search engines and spiders; save calculation by giving absolute instead of relative links.
- be consistent. Make a decision on www vs. non-www and follow the same convention consistently for all the links on your site. Use permanent redirects to keep spiders fetching the correct page.
Those rules of thumb will serve you well no matter what with every search engine, not just with Google. Of course, the vast majority of the time a search engine will handle a situation correctly, but anything that you can do to reduce the chance of a problem is a good idea. If you don't see any problems with your existing site, I wouldn't bother going back and changing or rewriting links. But it's something good to bear in mind when making new sites, for example.
Do you think the improvement in your rankings is the result of making links to the new pages that you added absolute and also some of the links to your older pages absolute later on, or are the better rankings as a result of the new content that you added?
GoogleGuy's posts:
http://www.webmasterworld.com/forum30/29720.htm [webmasterworld.com]
regarding underscores - way back when - ie, before I knew any better - I used underscores in filenames. Not in title, meta, etc, just in file names - lots of these rank nicely. Should I go back, revise the file name, do a 301 from the old file to the new? Is this uber important