#3502 - Low-level redirects

Identifier #3502
Issue type Feature request or suggestion
Title Low-level redirects
Status Completed
Tags

ocProducts client-work (likely) (custom)

Handling member Chris Graham
Addon redirects_editor
Description For Apache or Litespeed users, with mod_alias enabled, provide a feature in the redirects editor to configure low-level redirects.

These would be written into the .htaccess file automatically into a specific portion. It would use RedirectMatch.

This feature is useful for anyone who does not want to learn how to edit .htaccess, webmasters who may not have direct access to write to it, or people who simply keep forgetting the syntax (e.g. me).

Each redirect would consist of:
- Source URL
- Whether the path is case sensitive
- Whether the path is a prefix, whether the path is a prefix with the unspecified suffix copied over after the destination URL, or whether it only matches a whole URL
- Destination URL

Composr would try and normalise the source URL. For example, if it is absolute, it would be stripped down. If there was no leading '/', that and the install subdirectory would automatically be added on the front.

Trailing slashes would always be allowed for matching. If trailing slashes are included in the pattern given, they would be stripped.
Steps to reproduce

Additional information We already try and build .htaccess in the installer, add IP bans directly, and provided recommended versions, so this isn't a huge leap.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated