I am using URL rewrite for my e-commerce project. I have a url like localhost/norres/category.php?category=1 and I want to change above url in localhost/norres/category/1

I am using .htaccess file and the code is:

RewriteEngine On
RewriteRule ^category/(.+)$ category.php?category=$1
It is working fine but in URL http://localhost/norres/category/1 my href tag is - ">Category

category/ is working as directory and I don't have such folder, so how to resolve? Please help