Re: What's wrong with this rewrite rule?

From: Date: Wed, 02 Feb 2005 18:21:39 +0000
Subject: Re: What's wrong with this rewrite rule?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207910@lists.php.net to get a copy of this message
the problem is actually really easy.... You're not asking it on an apache list (this is a PHP list... so why should anyone here know anything about mod_rewrite for apache?) sorry if I sounded rude, but that's just the way I feel about it Chris W. Parker wrote:
Hello, I've been messing with a certain rewrite rule for about 30 minutes now and it's driving me insane. I've got plenty of other rewrite rules working perfectly. Here is the rule in question. RewriteRule ^detail\.asp\?product_id=([\w-]+)$ product.php?id=$1 The URL I'm testing this with is: http://www.nonlethal.com/detail.asp?product_id=bh35wg00od This is to stop 404's from a legacy product that has these old links in it. i.e. "detail.asp?product_id=" was what the old site used, "product.php?id=" is what the new site uses. Anyone see what I'm missing? Chris.


« previous php.general (#207910) next »