please help to rewrite Urls from
http://www.site.com/index.php?cat=catname
and
http://www.site.com/index.php?id=productname
to be like this
http://www.site.com/catname
and
http://www.site.com/productname
i think it will require php check if the page is cat work with it as cat or its product work with it as product
in .htaccess file:
category/product check must be done in index.php...
Or you can add extra slug
but url will look like http://site.com/category/catname
The problem with that scheme is that you can't tell whether it's a catalog name or a product name by the URL. As a result, you'll probably want something like this:
Which can then be implemented in a .htaccess file with the following rules: