[CLUE-Tech] Regex Problem Using mod_rewrite
dan radom
dan at radom.org
Fri Jul 23 18:41:39 MDT 2004
* Jed S. Baer (thag at frii.com) wrote:
> On Fri, 23 Jul 2004 16:45:26 -0600
> Keith Hellman <khellman at mcprogramming.com> wrote:
>
> > I know nothing about setting up Apache and PHP, but I'm curious if
> > ReWriteRule ^/(foo|bar|.ickle|thing|.addle|mumble)\.htm$ /$1.php
> > works...
>
> It might. But what if I don't want to rewrite mickle.htm or faddle.htm?
>
RewriteCond %{REQUEST_URI} !^/(mickle|faddle)$
RewriteCond %{REQUEST_URI} ^/(foo|bar|.ickle|thing|.addle|mumble)\.htm$
RewriteRule ^(.*.htm.*)$ /$1.php [L]
or thereabouts should get it.
dan
More information about the clue-tech
mailing list