Duplicate content in ASP.NET MVC because of custom routes MapRoute(), are areas the rescue?
Posted
by artvolk
on Stack Overflow
See other posts from Stack Overflow
or by artvolk
Published on 2010-04-28T14:48:43Z
Indexed on
2010/04/28
14:53 UTC
Read the original article
Hit count: 483
asp.net-mvc
|routing
I use custom routes for my URLs and my action become accessible via two URLs (not counting trailing slash and lower\upper case letters): one via my custom route /my-custom-route-url/
and one via default /controller/action
.
I see one possible solution -- put all controllers which use default routing (they are mostly backend) in one area, and place all others in separate area and use it without default route.
May be there is a better way?
© Stack Overflow or respective owner