durusmail: quixote-users: RewriteRule
RewriteRule
2002-05-21
2002-05-22
2002-05-22
2002-05-22
2002-05-22
2002-05-23
2002-05-24
2002-05-29
2002-05-29
2002-05-29
2002-05-29
2002-05-29
2002-05-29
2002-05-29
RewriteRule
Patrick K. O'Brien
2002-05-22
[Greg Ward]
> > Second, most of the examples in the Apache docs look more like this:
> >
> >     RewriteRule ^/qdemo/(.*) /www/cgi-bin/demo.cgi/$1 [last]
> >
> > That's the pattern I used in my .htaccess file and it works fine.
>
> It doesn't matter.  These two rewrite rules:
>
>   RewriteRule ^/qdemo(/.*) /www/cgi-bin/demo.cgi$1 [last]
>   RewriteRule ^/qdemo/(.*) /www/cgi-bin/demo.cgi/$1 [last]
>
> are exactly equivalent.

Then I would be in favor of the version that matches the form shown in the
Apache docs. It makes it just that much easier to figure out and make use
of. But that's your call to make.

> In particular, requests for "/qdemo/" will be handled by both rules, but
> requests for "/qdemo" will not.  People are lazy and most people don't
> understand the difference between "/qdemo" and "/qdemo/" -- so it's
> important that you (the webmaster) take care of it for them.

I understand the difference and didn't have any problem with this.

> All clear?

Very clear and working quite nicely on three different sites, thank you.
Just trying to offer some minor help with the docs while these little
stumbling blocks are still fresh in my mind. Otherwise, Quixote rocks!

---
Patrick K. O'Brien
Orbtech



reply