Prodcuts folder and 67-build-your-own-computer.aspx page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
I installed Nop Commerce software into my computer to try it.
I expect  there are a products folder and a 67-build-your-own-computer.aspx page since when I click Build Your Own Computer link on the home page, it brings me to URL http://localhost:1675/products/67-build-your-own-computer.aspx. However I could not find the Products folder and the 67-build-your-own-computer.aspx page.  Does anyone could tell me why? Thanks
Hace 13 años
"URL Rewriting"
Hace 13 años
Katavary,
Thank you so much for your promptly reply.  Does Nop Commerce use IIS bulit-in url rewriting function or it has its classes to do url rewriting (if yes, could you please tell me which classes)? Many thanks!
Hace 13 años
nopCommerce uses URL rewriting classes, not the IIS stuff... I've seen the files but I don't know exactly where the files are, but if you look through the solution you can find them pretty easy.
Hace 13 años
on the "http://admin-demo.nopcommerce.com/administration/globalsettings.aspx" please select "SEO/Display" tab. Your can enable or disable "URL rewriting" and modify the default url rewriting formats.
Hace 13 años
also please see Product.aspx, Category.aspx, etc pages and templates
Hace 13 años
Thank you all.
I think NopCommerce uses UrlRewriteingNet.UrlRewrit component that is an open source component (http://www.urlrewriting.net/149/en/home.html).

This component is defined in the web.config file.

The url rewriting mapping is defined in the UrlRewriting.config file, such as

<add name="ProductDetailsRewrite"
virtualUrl="^~/products/([0-9]*)-([\w-]*)\.aspx(?:\?(.*))?"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/product.aspx?productid=$1&amp;$3"
ignoreCase="true"
/>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.