InterbredMonkey
11-14-2010, 08:17 PM
Hi I have the following re_write condition:
RewriteRule ^([^/\.]+)\.php$ index.php?page=$1 [L]
Which when I try to access the page like www.domain.com/newsite/hello.php
the only thing stored in the $_GET is "index".
Can someone explain to me what I have managed to do wrong? I know it is slightly working because when I change it to:
RewriteRule ^([^/\.]+)\.php$ index.php?page=bob [L]
it supplies the $_GET with the string "bob".
Thanks.
RewriteRule ^([^/\.]+)\.php$ index.php?page=$1 [L]
Which when I try to access the page like www.domain.com/newsite/hello.php
the only thing stored in the $_GET is "index".
Can someone explain to me what I have managed to do wrong? I know it is slightly working because when I change it to:
RewriteRule ^([^/\.]+)\.php$ index.php?page=bob [L]
it supplies the $_GET with the string "bob".
Thanks.