I am using PHP 7.2 URL Rewrite Rules. i am making 2 links first link is "category.php?inventory_id=" and second links "show-subcategories.php?cat_id" but the result is always the first link is working missing code, please help ...
I have need URL
www.example.com/product-list-nokia-1 // category url
www.example.com/category/product-list-nokia-n72-3 // subcategory url
www.example.com/category/subcategory/product-list-nokia-n72-3 // subcategory url
Current URL
https://www.example.com/show-subcategories.php?cat_id=1
https://www.example.com/show-childcategories.php?sub_cat_id=1
https://www.example.com/search-result.php?p_id=1
The htaccess code here...
error rule please check it's now
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (\d+)$ category.php?inventory_id=$1 [L]
RewriteRule category/(\d+)$ show-subcategories.php?cat_id=$1 [L]//error part rule is not working