Skip to content

Redirects and rewrites are basically the same thing #363

Open
@palant

Description

@palant

Search for duplicate feature request

  • I already searched, and this feature request or improvement is not a duplicate.

Feature scope

Improve existing functionality

Feature request related to a problem

Initially I didn’t recognize the difference between redirects and rewrites, and they are in fact almost identical. It seems that there are only two differences: redirects can be tied to a host name whereas as rewrites cannot, and rewrites support internal redirects whereas redirects don’t. It shouldn’t be too hard to merge both features and remove the confusion.

Describe the solution you'd like

Adding an optional host field to rewrites will be backwards-compatible and render redirects superfluous. The redirects configuration options can stay for backwards compatibility but be rendered into Rewrites data structure. This will get rid of the confusion around these features and code duplication.

Describe alternatives you've considered

Things can stay as they are now of course. Internal redirects will have to affect all hosts then.

Build target

All targets

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededv2v2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy