Help - Search - Members - Calendar
Full Version: Can I have www.mystore.com/Category/Subcategory/Product-Name.html
CubeCart Forums > General > General Discussion
Chrisphoenix2008
Hello there!

Please help me with this challenge if you can:


I want to change the way the search engine friendly URL looks from:

www.mystore.com/Category/Subcategory/Product-Name/prod_1.html

to

www.mystore.com/Category/Subcategory/Product-Name.html

In other words, I want to eliminate the "prod_#.html" at the end, and simply have the ".html" at the end of the product. I need this function because I update my catalog very frequently by adding and deleting products. The "prod_#.html" is making the URL for each product change very frequently, which is very bad for SEO. Please help me out if you can. Thank you very much!


Sincerely,
Chris


P.S.


I think the “prod_#” part is generated randomly by CubeCart each time we bulk upload the CSV file containing our items. And because my business requires me to very frequently update inventory info by adding and deleting products, the “prod_#” part for each product will be changed frequently as well, which is very bad for SEO, and can have a devastating effect on my business. I really need CubeCart to be able to generate the product URL by using the “product name” info. For example, one of my products has the product name “Q7553X”, under sub category “HP” and category “Laser Printer Supplies”, then I need CubeCart to create URL: www.mystore.com/Laser-Printer-Supplies/HP/Q7553X.html so no matter how often I update my inventory by adding and deleting products, the URL for each product will never change. Please help me out. I’d really appreciate it very much. Thank you everybody...
Brivtech
The reason it doesn't do what you want is because of the way the URLs are converted by the .htaccess file. The number at the end is retrieved, and the rest discarded to create a new URL that CuebCart actually understands to fetch and display the product information.

Perhaps it would be possible to rework this, so the product name is fetched instead of the product ID, but I don't know enough about .htaccess. I think there could be too many programming restrictions involved for the URL conversion, and it may not be practical. In this instance, I suppose you could have prod_Q7553X.html. Someone with more knowledge of .htaccess will need to answer it further I'm afraid.
Stevie68
There are mods which will do this for you. Mods can be found at cubecartforums.org.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.