You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Lentes, Bernd" <be...@helmholtz-muenchen.de> on 2013/03/25 14:32:41 UTC

[users@httpd] some principal questions concerning mod_rewrite

Hi,

i'd like to use mod_rewrite, but i have some problems in understanding it.

- "RewriteRule pattern subtitution [flags]":
Is substitution always an URL ? Also in cases when pattern is matched against the filesystem path ?
Is a RewriteRule always applied to an URL, meaning the URL will change depending on the substitution ?

- What means (in directory context) "... after removing the prefix that lead the server to the current RewriteRule" ? Which prefix is removed ? That of the URL or that of the filesystem path ?

- "per-directory Rewrites": "When using the rewrite engine in .htaccess files the per-directory prefix (...) is automatically removed for the RewriteRule pattern matching and automatically added after any relative (not starting with a slash or protocol name) substitution encounters the end of a rule set." Does this not apply to directory context, only to .htaccess ? Again: what is removed ? The prefix of an URL or that of a filesystem path ? And where is it added ? In an URL or in a filesystem path ?

Thanks for any clarifying.


Bernd
--
Bernd Lentes

Systemadministration
Institut für Entwicklungsgenetik
Gebäude 35.34 - Raum 208
HelmholtzZentrum münchen
bernd.lentes@helmholtz-muenchen.de
phone: +49 89 3187 1241
fax:   +49 89 3187 2294
http://www.helmholtz-muenchen.de/idg

Leute, versauft's nit Euer ganzes Geld.
Kauft lieber Bier davon !
Karl Valentin

Helmholtz Zentrum München
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
Registergericht: Amtsgericht München HRB 6466
USt-IdNr: DE 129521671

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] some principal questions concerning mod_rewrite

Posted by joby arandela <po...@gmail.com>.
Im
On Mar 26, 2013 2:33 AM, "Lentes, Bernd" <be...@helmholtz-muenchen.de>
wrote:

> Hi,
>
> i'd like to use mod_rewrite, but i have some problems in understanding it.
>
> - "RewriteRule pattern subtitution [flags]":
> Is substitution always an URL ? Also in cases when pattern is matched
> against the filesystem path ?
> Is a RewriteRule always applied to an URL, meaning the URL will change
> depending on the substitution ?
>
> - What means (in directory context) "... after removing the prefix that
> lead the server to the current RewriteRule" ? Which prefix is removed ?
> That of the URL or that of the filesystem path ?
>
> - "per-directory Rewrites": "When using the rewrite engine in .htaccess
> files the per-directory prefix (...) is automatically removed for the
> RewriteRule pattern matching and automatically added after any relative
> (not starting with a slash or protocol name) substitution encounters the
> end of a rule set." Does this not apply to directory context, only to
> .htaccess ? Again: what is removed ? The prefix of an URL or that of a
> filesystem path ? And where is it added ? In an URL or in a filesystem path
> ?
>
> Thanks for any clarifying.
>
>
> Bernd
> --
> Bernd Lentes
>
> Systemadministration
> Institut für Entwicklungsgenetik
> Gebäude 35.34 - Raum 208
> HelmholtzZentrum münchen
> bernd.lentes@helmholtz-muenchen.de
> phone: +49 89 3187 1241
> fax:   +49 89 3187 2294
> http://www.helmholtz-muenchen.de/idg
>
> Leute, versauft's nit Euer ganzes Geld.
> Kauft lieber Bier davon !
> Karl Valentin
>
> Helmholtz Zentrum München
> Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
> Ingolstädter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
> Geschäftsführer: Prof. Dr. Günther Wess und Dr. Nikolaus Blum
> Registergericht: Amtsgericht München HRB 6466
> USt-IdNr: DE 129521671
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>