Canonical and 301 Redirection Which is Best

4 replies
  • SEO
  • |
My website developed in PHP and all pages have .php extension. But i am using url rewrite facility for make url search engine friendly and coming with .html extension. So I have to know that I have to use canonical on each page to specify what version should be crawl by google or need to use 301 redirection.

Please suggest me on this.
#301 #canonical #redirection
  • Profile picture of the author gracyluther
    Canonical is the right option for redirection..
    {{ DiscussionBoard.errors[8206578].message }}
  • Hiteshjain,

    Gracyluther is correct in that you should use the rel=”canonical” tag for your pages. Also, I’m assuming you aren’t redirecting visitors but using re-write so that they don’t see your file extensions?

    Best,

    Shawn
    Signature
    Outsource to the experts...

    We customize your Blog, eBook, Press Release and Sale Copy content with your message.

    {{ DiscussionBoard.errors[8206800].message }}
  • Profile picture of the author msmith786
    301 is the better option i think!
    {{ DiscussionBoard.errors[8206828].message }}
  • Profile picture of the author Michael Nguyen
    both different and serve different purposes.

    301 if you want to ensure a dead url goes to a new url

    canonical if you want to tell Google you preferred URL

    Now imagine a car dealer website which has put a particular car in 2
    categories but he wants the main ford section of the site to have priority

    EG domain.com/ford/used/focus/model123
    domain.com/used-cars/ford/focus/model123 (you would canonical this url)

    A redirect in this instance sends the user to another section of the site which will annoy them even though its the same car model.

    Not everything is solved via 301 or canonicals. Please learn how to use it properly.
    Signature
    {{ DiscussionBoard.errors[8207122].message }}

Trending Topics