what needs to be done in order to change / modify url-rewriting ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I want to change News url to something else so that news doesn't appear in the url link.

Lets say i want to change "News" to "abc"

Till now i did these changes:

In UrlRewriting.config file

<add name="NewsDetailsRewrite" virtualUrl="^~/news/([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?"
         rewriteUrlParameter="ExcludeFromClientQueryString"
         destinationUrl="~/news.aspx?newsid=$1&amp;$3"
         ignoreCase="true" />

To this

<add name="NewsDetailsRewrite" virtualUrl="^~/abc/([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?"
         rewriteUrlParameter="ExcludeFromClientQueryString"
         destinationUrl="~/news.aspx?newsid=$1&amp;$3"
         ignoreCase="true" />



In admin section >    Configuration   >   Global Settings  > SEO/Display

News url rewrite format:  {0}News/{1}-{2}.aspx

to this

News url rewrite format:  {0}abc/{1}-{2}.aspx

I tested these change and it worked so i just want to know is these changes enough or i am missing something else also so that i don't face any problems in future...
13 years ago
That's enough to modofy URL-rewrting rules
13 years ago
nopCommerce team | a.m. wrote:
That's enough to modofy URL-rewrting rules

Thanks Andrei....
13 years ago
How can we update the URL rewrite to use .html instead of .aspx?
13 years ago
jmorris wrote:
How can we update the URL rewrite to use .html instead of .aspx?


hi,i have problem like you?have you checked it now?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.