Welcome to WebmasterWorld Guest from 23.22.140.143

Message Too Old, No Replies

Should I 301 redirect or use canonical?

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

Junior Member

5+ Year Member

joined:Dec 20, 2009
posts: 97
votes: 0


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 June 9, 2012 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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 June 9, 2012 (gmt 0)

Senior Member from US 

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

joined:Apr 9, 2011
posts:12709
votes: 244


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 June 10, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 7, 2003
posts: 750
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members