Advertisement:

Author Topic: Url Rewrite working as directory  (Read 1855 times)

Offline george12

  • Newbie
  • *
  • Posts: 1
Url Rewrite working as directory
« on: June 08, 2017, 07:17:12 AM »
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

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 54,901
  • Gender: Male
    • Kindred-999 on GitHub
Re: Url Rewrite working as directory
« Reply #1 on: June 08, 2017, 04:53:45 PM »
install the "Pretty URLs" mod
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.