Re: URL rewriting...anybody done this?
| From: | Brad Pauly | Date: | Wed, 14 Jan 2004 22:54:05 +0000 |
| Subject: | Re: URL rewriting...anybody done this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174593@lists.php.net to get a copy of this message | ||
On Wed, 2004-01-14 at 15:11, Ryan A wrote:
[snip]
> and heres the output:
>
> Ok,we are in show.php
> No $_GET[id]
> No $_GET[sid]
> Array ( )
>
>
> Ideas?
Seems like you are getting closer. You are going to the right place, but
none of your variables are making it. I am not sure what your rule looks
like now, but at one point it was:
RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3
I would recommend trying just one variable first. See if you can get
that to work, then add the others one at a time. Maybe something like
this to start with:
RewriteRule ^show/(.*) /show.php?foo=$1
And see what $_GET looks like.
- Brad