Sven Rautenberg: Abschalten der alten Dokumentation

Beitrag lesen

Moin!

Ein Herunterbrechen der Weiterleitungen bis auf die Ankerebene wäre schön, aber das geht a) glaube ich gar nicht per .htaccess und b) wäre das noch einmal ein riesen Aufwand, den ich mir derzeit nicht antuen möchte.

Das geht durchaus :) Aber dass du den Aufwand scheust verstehe ich.

Geht sogar ohne Tricks. RFC7231:

If the Location value provided in a 3xx (Redirection) response does not have a fragment component, a user agent MUST process the redirection as if the value inherits the fragment component of the URI reference used to generate the request target (i.e., the redirection inherits the original reference's fragment, if any).

For example, a GET request generated for the URI reference "http://www.example.org/~tim" might result in a 303 (See Other) response containing the header field:

 Location: /People.html#tim

which suggests that the user agent redirect to "http://www.example.org/People.html#tim"

Grüße Sven