mod_rewrite strange behavior
Hi,Ive recently got a linux dedicated server and Im having issues with mod_rewrite.
I'm using a very simple rewrite rule in my .htaccess file to rewrite the following URL:
http://type-domain-here.com/view.php?id=9166
to this one
http://type-domain-here.com/item/9166/
Here is my .htaccess file:
Code:
Options +FollowSymLinks RewriteEngine on RewriteRule ^item/[0-9]+/?$ /view.php?id=$1
The problem is that the id parameter (id=9166 in the above example) cannot be accessed with $_GET["id"] on my page; the $_GET["id"] is empty. If I access directly the standard URL:
http://type-domain-here.com/view.php?id=9166
the $_GET["id"] has a value of 9166, as it should.
I have the same rewrite rule working on several other sites on different servers.
I would appreciate your suggestions and ideas of how to fix that.
Thanks in advance,
Peter