Re: What's wrong with this rewrite rule?

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

 



* Michael <phpnews@xxxxxxxxxxx>:
> Chris W. Parker wrote:
> > 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"...

Actually, that's not always the case. I was recently working on some
rewrite rules, under the assumption that they would start with '/' -- an
erroneous assumption as it turned out. RewriteLog showed me why...

-- 
Matthew Weier O'Phinney           | mailto:matthew@xxxxxxxxxx
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
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