Quelle, Verdeutlichung
bearbeitet von Raketenwilli> Hello,
>
> > > > > > https://www.umdiewelt.de/blog/
> > >
> > >
> > > Hm. Ist Dir bekannt, dass **jede** Datei „.htaccess“ auf dem Weg zu dem Verzeichnis beachtet wird? Hast Du vielleicht eine herumliegen, von welcher Du denkst, die würde nicht beachtet?
> >
> > <https://httpd.apache.org/docs/2.4/howto/htaccess.html#when> sagt:
> >
> > > Further note that httpd 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](https://httpd.apache.org/docs/2.4/howto/htaccess.html#how).) Thus, if a file is requested out of a directory /www/htdocs/example, httpd must look for the following files:
> > >
> > > ~~~
> > > /.htaccess
> > > /www/.htaccess
> > > /www/htdocs/.htaccess
> > > /www/htdocs/example/.htaccess
> > > ~~~
>
> [...] und soweit ich mich erinnere, kann man in einer unteren (tieferen) Ebene auch die/viele der Direktiven übergeorneter Ebenen wieder aufheben. Und die gelten dann wieder für alle tieferen Verzeichnisebenen bis auf Widerruf.
**RewriteRules werden indes indes nicht überladen.** Die werden zu einer Liste gefügt. Dabei ist aber das jeweilige Verzeichnis zu beachten:
<https://httpd.apache.org/docs/2.4/howto/htaccess.html#rewrite>