- Open the
\Presentation\Nop.Web\Infrastructure\RouteProvider.cs file - To find
routes.MapLocalizedRoute ("Category",
"** c ** / {categoryId} / {SeName}",
new {controller = "Catalog", action = "Category", SeName = UrlParameter.Optional},
new {categoryId = @ "\ d +"},
new [] {"Nop.Web.Controllers"});
and replace it with
routes.MapLocalizedRoute("Category", "categories/{categoryId}/{SeName}", new { controller = "Catalog", action = "Category", SeName = UrlParameter.Optional }, new { categoryId = @"\d+" }, new[] { "Nop.Web.Controllers" });
3. Do almost the same in the \Libraries\Nop.Services\Seo\SitemapGenerator.cs (replace {0}c/{1}/{2} with {0}categories/{1}/{2} )
source share