Project

General

Profile

Actions

Feature #2085

closed

null redirects for mod_redirect

Added by qqqqq over 15 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_redirect
Target version:
ASK QUESTIONS IN Forums:

Description

Please add null-redirects to mod_redirect. In other words, a pattern which, when matched, does nothing, not even a redirect back to the same address (which is pointless anyway). Supplied is a patch which implements this using the syntax

"pattern" => ""

Presumably, no-one is using the value "" as the target for a redirect, so this should not disrupt existing systems.

This would be helpful in defining exceptions to global redirect rules. Say you want to redirect all HTTPS traffic to HTTP, except for a few special pages, and you want this to be flexible. Then you can define the exceptions (eg. with var.redirect_exceptions += ( "pattern" => "" ) ) in several multiple include files, with the last include file defining the global redirect rule.


Files

null_redirect.diff (591 Bytes) null_redirect.diff patch on trunk @ 2009-10-18T16:15:00+0100 qqqqq, 2009-10-18 15:17
#1

Updated by qqqqq over 15 years ago

  • Target version set to 1.4.x
#2

Updated by qqqqq over 15 years ago

  • Target version deleted (1.4.x)
#5

Updated by gstrauss about 9 years ago

  • Status changed from New to Patch Pending
  • Target version set to 1.4.40
#12

Updated by gstrauss almost 9 years ago

  • Status changed from Patch Pending to Fixed
Actions

Also available in: Atom