You are here: Re: modrewrite (won't work for second rule) « All PHP « IT news, forums, messages
Re: modrewrite (won't work for second rule)

Posted by Janwillem Borleffs on 12/22/05 14:50

Andrew wrote:
> thanks, I'm actually trying to make them all have the same .html
> extension? Is this possible with those two rules, the first rules
> works like a charm, which is why I want to have the second rule
> working too because both pdisplay and gdisplay show different code
> (e.g. html and style sheets etc)
>

As I suggested, you should redirect the requests to pdisplay.php and let it
handle requests to gdisplay.php.

Each RewriteRule is handled by its pattern and when both patterns are
exactly the same, Apache will select the first it encounters.

If you are able to make each pattern unique by a variation in the file name,
only then it will work.


JW

 

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

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