now my url is
detail.php?category=abc&model=126
and i want like this
detail/abc-126.html
and i am using this code in but it is not working properly
.htaccess
RewriteRule ^detail/([a-zA-Z0-9_-]+)/([0-9]+)\.html$ detail.php?category=$2&model=$2
and my 2nd question is suppose if i use a dir like this in my website foldername
www.example.com/foldername/detail/abc-126.html
and my php file in this folder
www.example.com/foldername/detail.php
and my .htaccess file in
www.example.com/.htaccess
is here
so how can i use with foldername
and this is not a duplicate post i search many sites but i did not understand how to solve this
so please help me to fix this issue thanks