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.
Il y a 13 ans
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
Il y a 13 ans
"URL Rewriting"
Il y a 13 ans
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!
Il y a 13 ans
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.
Il y a 13 ans
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.
Il y a 13 ans
also please see Product.aspx, Category.aspx, etc pages and templates
Il y a 13 ans
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.