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.
13 anni tempo fa
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
13 anni tempo fa
"URL Rewriting"
13 anni tempo fa
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!
13 anni tempo fa
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.
13 anni tempo fa
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.
13 anni tempo fa
also please see Product.aspx, Category.aspx, etc pages and templates
13 anni tempo fa
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.