RE: [PHP] mod_rewrite and getting url variables
| From: | Chris W. Parker | Date: | Tue, 12 Apr 2005 16:04:39 +0000 |
| Subject: | RE: [PHP] mod_rewrite and getting url variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212935@lists.php.net to get a copy of this message | ||
Ospinto <mailto:ospinto@hotmail.com>
on Tuesday, April 12, 2005 10:32 AM said:
> I used mod_rewrite to change http://www.mysite.com/page/1 to
> http://www.mysite.com/page.php?id=1 to enable a search friendly
> url.
Ok I'm with you.
> Everything works fine, except that when I try to get the URL variable
> ($id) by using $_GET, it doesn't return anything. With
> http://www.mysite.com/page.php?id=1 it gets $id just fine.
Now you've lost me. Those two statements seem to be in opposition to one
another. You can't get $id with $_GET but
http://www.mysite.com/page.php?id=1 works just
fine? The URL is a "GET"
URL since it has a querystring.
Chris.