SEO: Duplicated URLs with and without dash "/" and ASP.NET MVC

Posted by Guillermo Guerini on Stack Overflow See other posts from Stack Overflow or by Guillermo Guerini
Published on 2010-05-02T21:43:22Z Indexed on 2010/05/02 21:47 UTC
Read the original article Hit count: 546

Hello guys, after reading this article "Slash or not to slash" (link: http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html) on Google Webmaster Central Blog (the oficial one) I decided to test my ASP.NET MVC app.

For example: http://domain.com/products and http://domain.com/products/ (with "/" in the end), return the code 200, which means: Google understands it as two different links and likely to be a "duplicated content". They suggest to choose the way you want... with or without dash and create a 301 permanent redirect to the preferred way.

So if I choose without dash, when I try to access http://domain.com/products/ it will return a 301 to the link without dash: http://domain.com/products.

The question is, how can I do that with ASP.NET MVC?

Thanks, Gui

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc