Re: What's wrong with this rewrite rule?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

You're insisting that the path to rewrite start with d. It's not going to start with d, it's going to start with /. As in "/detail.asp"...


Easy thing to miss, though...

Mike

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux