Web Servers on Unix and Linux - RewriteRule

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > April 2004 > RewriteRule





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RewriteRule
Christian Emig

2004-04-21, 8:38 am

I found the following in http://httpd.apache.org/docs/howto/htaccess.html

[vbcol=seagreen]
Further note that Apache must look for .htaccess files in all higher-level
directories, in order to have a full complement of directives that it must
apply. (See section on how directives are applied.) Thus, if a file is
requested out of a directory /www/htdocs/example, Apache must look for the
following files:

/.htaccess
/www/.htaccess
/www/htdocs/.htaccess
/www/htdocs/example/.htaccess[vbcol=seagreen]


Might it be possible that this does NOT apply to RewriteRule statements?


If I put a RewriteRule in /.htaccess and if there exists a RewriteRule in
/www/htdocs/example/.htaccess that only the RewriteRules from
/www/htdocs/example/.htaccess are applied?

That's at least what I expierienced with Apache 1.3.26/Unix


Is the behaviour ok?


thnx! ce.
André Malo

2004-04-21, 10:39 am

* Christian Emig <trash@emig.net> wrote:

> Might it be possible that this does NOT apply to RewriteRule statements?


Sure. See the RewriteOptions docs.

nd
Christian Emig

2004-04-21, 1:42 pm

André Malo wrote:
> * Christian Emig <trash@emig.net> wrote:
>
>
> Sure. See the RewriteOptions docs.


thnx! "RewriteOptions inherit" is the magic word.

ce.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com