Website redirect - htaccess or canonical tag?

by 3 replies
4
Need some advice on this question. I am aware that there is a canonical tag for redirecting the non www to the www. version of the site. I am aware this can also be done in htaccess file. My question is for the purpose of SEO which method is preffered?
#search engine optimization #canonical #htaccess #redirect #tag #website
  • I prefer htaccess with a 301 redirect so that people themselves see the correct page.
    • [ 1 ] Thanks
  • Obviously htaccess with a 301 redirect
    • [1] reply
    • Canonical tag is rather used to tackle two duplicate pages in search engine results, But when you want to show a single page for indexation, then probably putting 301 redirect is the best option.

Next Topics on Trending Feed