| Should I 301 redirect or use canonical?
|
castor_t

msg:4463361 | 3:28 pm on Jun 9, 2012 (gmt 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?
|
tedster

msg:4463412 | 7:31 pm on Jun 9, 2012 (gmt 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.
|
lucy24

msg:4463470 | 10:27 pm on Jun 9, 2012 (gmt 0) | 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.
|
deadsea

msg:4463549 | 10:28 am on Jun 10, 2012 (gmt 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.
|
|
|