Re: URL rewriting...anybody done this?

From: Date: Wed, 14 Jan 2004 19:41:59 +0000
Subject: Re: URL rewriting...anybody done this?
Groups: php.general 
Request: Send a blank email to php-general+get-174578@lists.php.net to get a copy of this message
Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second line....not working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3 I even took out the space which was in category. Any ideas? Thanks, -Ryan On 1/14/2004 8:11:47 PM, Brad Pauly (brad@robinsontech.com) wrote: > On Wed, 2004-01-14 at 11:44, Ryan A wrote: > > [snip] > > > Its a bit hard to explain what happens so see for yourself: > > Heres the index page: > > http://www.rizkhan.net/articles/articles.php > > Heres the actual page: > > http://www.rizkhan.net/articles/show. > php?category=Beginners%20Corner&sid=1&id=1 > > and then if you modify it to: > > > > http://www.rizkhan.net/articles/show/Beginners%20Corner/1/1 > > [snip] > > > Any ideas? > > One thing I noticed is that your rule is looking for a .php at the end > so the above url will not match. > > RewriteEngine On > RewriteRule ^show/(.*)/(.*)/(.*).php > /show.php?category=Beginners%20Corner&sid=$2&id=$3 > > I don't remember for sure, but do you need an [L] at the end of the > second line? > > - Brad > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#174578) next »