You are here: Re: What's wrong with this rewrite rule? « PHP « IT news, forums, messages
Re: What's wrong with this rewrite rule?

Posted by Matthew Weier O'Phinney on 10/04/28 11:07

* Michael <phpnews@mas.ml1.net>:
> 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@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация