I want to convert the url Category.php and Profile.php to url frindly, but only category it's working. I don't want to use any matching group !
Example :
domain.com/category.php?id=5
and
domain.com/profile.php?id=2
Convert to:
domain.com/categoryname
domain.com/profilename
.htaccess code:
RewriteEngine on
#category
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([^/.]*)$ category.php?id=$1
#profile
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([^/.]*)$ profile.php?&id=$1
But that works only for category !
Thanks