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 anos atrás
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 anos atrás
"URL Rewriting"
13 anos atrás
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 anos atrás
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 anos atrás
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 anos atrás
also please see Product.aspx, Category.aspx, etc pages and templates
13 anos atrás
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.