I may be posting this in the wrong place, and if so, I apologize.
I am currently trying to set up "clean" urls for my php pages that have query strings using mod_rewrite. This is something I see quite often, yet for the life of me, cannot get to work.
I have a URL that is
www.mysite.com/products.php?productID=1
I want it to look like
www.mysite.com/products/1
So I googled some stuff and came up with a plethora of sites telling me how to do it. What I eventually settled on was the following Rewrite Rule.
RewriteEngine On
RewriteRule ^products/([0-9]+)$ products.php?productID=$1
Now if I am not mistaken, when I go to my products page, all URLs and links should be cleaned up. Instead they still look like the same lame URLs (and they're mocking me).
Am I merely confused about this whole thing, or am I doing something wrong? Shouldn't I see "www.mysite.com/products/1" in my HTML links? If someone could point me in the right direction, it would be much appreciated.
Oh, and FYI, yes I am certain mod_rewrite is installed, and yes I have tried to read the apache manual.