Best link using 2 vars?

44 views Asked by At

I have a shop with categories, how much important is to have the category name on the links?

I am using rewriteRules on my .htaccess; for instance:

www.someShop/productDetail.php?prodID=1234    
www.someShop/product/category-name/product-name

Or

www.someShop/productDetail.php?prodID=1234 
www.someShop/product/product-name

Is the link with the cat name better? Thanks in advance!!!

1

There are 1 answers

2
Farnabaz On BEST ANSWER

yes it is, urls are one of valuable parts of SEO optimization, if you have category name in your product url search engines easily detect category name of your product and this affect in final result of search

in another view when users see your site link in search engines, they can found out what is category of this product, and it help them to go to right link