Jump to content

Quick question about url rewriting.


Recommended Posts

I have it turned on and my category urls turn out like this

www.mysite.com/5-generic-name/

but when i look at a product inside that category, the product comes up as

www.mysite.com/generic-name/product.html

but then, if i type www.mysite.com/generic-name in the browser, it doesnt work, i have to include the "5-" first.

Is it possible to make the url rewriting of category url's not include the ID? I think it looks more tidy and professional as www.mysite.com/generic-name, as opposed to 5-generic-name. And also, in case a customer is looking at a product and then instead of pressing back or whatever button, he/she deletes the product.html, expecting to be able to browse the category, finds that it doesn't work.

Any input about the subject that i do not know about? and any way to do this?

Thanks

Link to comment
Share on other sites

I think i won't be easy because of how presta uses rewrites in htaccess. It doesn't use a bootstrap like wordpress for instance rewriting everything to index.php and from there looking up the proper page.

But it will be a good improvement for future versions.

Link to comment
Share on other sites

I found 1 more problem with URL rewrite. For example my category page is www.mysite.com/1-cellphone, however if i type www.mysite.com/1- or www.mysite.com/1-abcdef or whatever behind the 1- it will still redirect to the category page instead of the page not found page. Somehow google had crawled my pages with different URL and causes page duplication. Does this effect SEO? as google webmaster shows us that it is a problem. Please advice Thank you

Link to comment
Share on other sites

×
×
  • Create New...