RE: [PHP] mod_rewrite and getting url variables

From: Date: Tue, 12 Apr 2005 23:57:17 +0000
Subject: RE: [PHP] mod_rewrite and getting url variables
Groups: php.general 
Request: Send a blank email to php-general+get-212967@lists.php.net to get a copy of this message
Matthew Weier O'Phinney <mailto:matthew@garden.org> on Tuesday, April 12, 2005 9:42 AM said: > When using mod_rewrite, if the rewrite rule does not include a > pass-through, then the query string is not passed on to the script in > question. So, if you request the page directly with: > > http://www.mysite.com/page.php?id=1 > > it will process correctly, but if you have a rewrite rule that doesn't > have the pass-through flag, then when the URL is _rewritten_ to the > above, the page is requested _without_ the query string -- even > though the rule rewrites the URL with a query string. Hmm.. I guess I'll have to try it out to understand what's going on. I've never run across the problem myself. Thanks, Chris.

« previous php.general (#212967) next »