Changing Default Blog Page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
How would I go about changing the default blog page from something like www.mysite.com/blog to www.mysite.com/myblogname?

TIA

Steven
12 years ago
1. Open \Presentation\Nop.Web\Infrastructure\RouteProvider.cs
2. Replace
routes.MapRoute("Blog",
"blog",
new { controller = "Blog", action = "List" },
new[] { "Nop.Web.Controllers" });

with
routes.MapRoute("Blog",
"myblogname",
new { controller = "Blog", action = "List" },
new[] { "Nop.Web.Controllers" });
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.