News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Url Rewrite working as directory

Started by george12, June 08, 2017, 07:17:12 AM

Previous topic - Next topic

george12

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

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: