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/nokia-1 // category url
www.example.com/nokia/nokia-n72-3 // subcategory url
www.example.com/nokia/nokia-n72/product-1 // child subcategory url
Current URL
https://www.example.com/show-subcategories.php?cat_id=1 //category url
https://www.example.com/show-childcategories.php?sub_cat_id=1 // subcategory url
https://www.example.com/search-result.php?p_id=1 // child subcategory url
The htaccess code here...
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
RewriteRule
directive a hangover from a previous version of your question - it doesn't appear to relate to your edited URLs? It's just that that would be significant in why "the first link is working missing code" [sic].