Showing >300 products with unique ".html" URLs
Posted: Wed Oct 17, 2007 11:38 pm
Hello,
I want to use CMSMS for a website which has hundreds of products.
First, there are about 20 categories, and then each category contains 10-50 products.
Another requirement I have, is that each category page AND each product should have an URL with ".html/htm" extension without any IDs passed into url.
E.g.,
category-one.html
category-two.html
product-one.html
product-two.html
etc.
(of course, each URL address will have product/category name in it)
Each page will have a unique tex-ID.
By using CMSMS standard features, I am planing to create different pages for categories, but to have >300 pages covering all products, would be too uncomfortable to control via CMSMS stadard admin.
Each product has about 70 characteristics and there is a separate Admin for controling these values.
I am thinking of creating a CMSMS Module which would fetch information for one product.
My only worry is how to make sure that unique text IDs for category pages (created through CMSMS) would not overlap with unique text IDs of products.
One of the solutions I am thinking, is to have different URL extensions for Categories (".html") and different extensions for single product pages ".htm".
Then with Apache mod_rewrite I could rewrite Category Page requests to CMSMS index with "page":
And for Single Product pages:
Maybe somebody of you had similar projects, and could share ideas how to solve this task?
Thank you in advance for your advices.
Augustas
I want to use CMSMS for a website which has hundreds of products.
First, there are about 20 categories, and then each category contains 10-50 products.
Another requirement I have, is that each category page AND each product should have an URL with ".html/htm" extension without any IDs passed into url.
E.g.,
category-one.html
category-two.html
product-one.html
product-two.html
etc.
(of course, each URL address will have product/category name in it)
Each page will have a unique tex-ID.
By using CMSMS standard features, I am planing to create different pages for categories, but to have >300 pages covering all products, would be too uncomfortable to control via CMSMS stadard admin.
Each product has about 70 characteristics and there is a separate Admin for controling these values.
I am thinking of creating a CMSMS Module which would fetch information for one product.
My only worry is how to make sure that unique text IDs for category pages (created through CMSMS) would not overlap with unique text IDs of products.
One of the solutions I am thinking, is to have different URL extensions for Categories (".html") and different extensions for single product pages ".htm".
Then with Apache mod_rewrite I could rewrite Category Page requests to CMSMS index with "page":
Code: Select all
RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Code: Select all
RewriteRule ^(.+).htm$ index.php?mact=MyModule&productTextID=$1 [QSA]
Maybe somebody of you had similar projects, and could share ideas how to solve this task?
Thank you in advance for your advices.
Augustas