Welcome to WebmasterWorld Guest from 54.166.122.69

Should I 301 redirect or use canonical?

   
3:28 pm on Jun 9, 2012 (gmt 0)

5+ Year Member



I am getting many incorrect URL's like excluding the / at the end of URL. Though, I am able to display the correct connect, I am using a 301 redirect to point to the correct url.

Eg: www.website.com/url redirects to www.website.com/url/

However, since spiders are checking these urls frequently, a lot of time is getting wasted because of 301 redirect. Is using a canonical a better idea?
7:31 pm on Jun 9, 2012 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I'd say do both. The canonical tag puts the burden on the search engine to "get it right" - and eventually that usually happens. Nevertheless, a 301 is you assuming responsibility for the correct address. Your server always corrects the URL, no matter what the search engine does (or any other site) and that is the best practice.
10:27 pm on Jun 9, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



If /url/ is a real directory, you don't need to redirect it explicitly. mod_dir does it for you; that's its job. (Its other job is to rewrite /url/ to serve content from /url/index.htm or similar.)

Some spiders do seem to like asking for directories without that final / but since they get redirected I consider it their problem, not mine.

If /url/ is a pseudo-directory that will get rewritten to its "real" content, you do need to redirect. Generic rule: There should only be one way to reach any given page. Pages and URLs are not really the same thing, but treat them as if they are.
10:28 am on Jun 10, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The advantage of the 301 redirect is that users can only ever see one version in their url bar. Because of that, when others choose to link to your site, they will get the canonical url much more of the time.

Differing inbound links to urls that serve the same content can be a real pain to manage.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month