Reputation: 3
What is the best and easiest way of generating SEO friendly urls with ASP.NET 3.5. I saw url rewriter but i don't think it is good enough for me. Thank you for your all answers.
Upvotes: 0
Views: 466
Reputation: 3883
you can use Url Rewrite. you can check Tip/Trick: Url Rewriting with ASP.NET and URL Rewriting with ASP.NET
Upvotes: 1
Reputation: 23840
Best way for SEO friendly urls is using System.Web.Routing
Detailed information : http://www.google.com/search?hl=en&source=hp&biw=1920&bih=760&q=System.Web.Routing&aq=f&aqi=&aql=&oq=
How to use example :
At Global.asax file
void Application_Start(object sender, EventArgs e)
{
System.Web.Routing.RouteTable.Routes.Ignore("{resource}.axd/{*pathInfo}");
RegisterRoutes(System.Web.Routing.RouteTable.Routes);
}
void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapPageRoute(
"pokedex",
"MonsterDex",
"~/MonsterDex.aspx"
);
}
Live example : http://www.monstermmorpg.com/MonsterDex
Upvotes: 1