Re: mod_rewrite/alias confusion
On May 4, 3:28 pm, "HansH" <ha...@invalid.invalid> wrote:
> "drhowarddrfine" <robbel...@gmail.com> schreef in berichtnews:817e5f36-1b8a-4ed2-b90e-89c88c1bd434@b1g2000hsg.googlegroups.com...> On May 4, 2:09 pm, drhowarddrfine <robbel...@gmail.com> wrote:
>
> A small note on the subject:
> mod_rewrite modifies the mapping of an url to the filesystem to a lot wider
> extend then mod_alias. The latter only unconditionally changes the mapping
> for a complete folder.
>
Ah, yes. I recall reading that. Thank you.
> Not sure whether you have full control over Apache or just only are twisting
> it via .htaccess.
Yes. htaccess only. Forgot to mention that. Also Apache version 1.3
>
> Be more selective, example given only do html by:
> RewriteEngine on
> RewriteRule (.*\.html)$ cgi-bin/test [NC,L]
>
> Note the NC for no(t) case-sensitive matching.
>
There are no extensions to any of the pages themselves.
>
> Running .htaccess based rewrites has a performance penalty.
> To minimize the effect, consider setting up folders like
> \images
> \scripts
> \test
>
Doing that, yes.
Thanks for all that, Hans. Glad to see I was doing some things right.
|