Uh, not that kind of slashing!
Let’s say you are setting up your keyword rich links to point to a subdirectory. Should the link point to:
Most new SEOs won’t know the difference, thinking that if it gets the visitor there, it works, right?
There is a problem with this thinking. Let me introduce you to checking server headers. To do this, I’ll use my favorite server header tool over at http://www.seoconsultants.com/tools/headers.asp . You just pop a URL in the field and you’ll get a page back telling you how it did. Here are some of the possible results:
200 OK â€“ This means everything’s cool.
301 Moved Permanently â€“ The URL you typed in is properly being redirected to a new location.
302 Found â€“ This means your URL has temporarily been moved and found at the new location.
There are several other status indicators, but for the purpose of this article, we’ll concentrate on these three. Actually, your server header status can come back as a combination of these. For instance, if you have a good 301 redirect in place, you’ll first see a 301 Moved Permanently message and then a 200 OK message below it.
With a non-redirected page, you just want to see a 200 OK message when you enter any URL. As an example, if you do a server header check for http://www.weboptimist.com or http://www.weboptimist.com/ you’ll get a 200 OK for either.
But, that’s not always the case. Sometimes, particularly on Microsoft IIS web servers, what you will get back will be totally different when you check server headers with the â€œ/â€ or without it. On such servers, what you can get is a 302 Object Moved message and then the 200 OK message when you check for the subdirectory URL without the â€œ/â€ included. This means that the web server automatically 302 redirects the non-slashed URL to the slashed version.
This is not good and not particularly SEO friendly. Although there are good reasons to use a 302 redirect at times, it is meant to be used as a temporary redirect, not permanent. Web sites have been known to get into trouble with the search gods for using 302 redirects instead of the 301 permanent redirect and link juice is said to be passed almost totally with a 301 redirect. Such is not the case with a 302 redirect. Again, it is supposed to be temporary.
What can you do? First, check your URLs to see if you have this issue. If not, don’t sweat it, though I recommend that you stick with a standard way of writing your URLs â€“ preferably with the â€œ/â€ at the end â€“ http://www.somedomain.com/subdirectory/. Pointing to exactly the same URL every time is always a good thing in SEO, not unlike the canonical issue with using www or not in a URL. It’s best to choose one and always use it. Don’t mix and match.
If you do find that your non-slashed subdirectory URLs are being 302 redirected, make a point of always, always, always, using the slash at the end. Do a link audit on your site and check for this type of link and change them so that they include the ending slash.
In the long run, you and your site’s SEO will be better off. Your links will be better focused without unwanted (and unexpected) 302 redirects in the way.