Project

General

Profile

Actions

Feature #61

closed

Setting HTTP status code for redirection

Added by Anonymous almost 20 years ago. Updated almost 17 years ago.

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

Description

I would like to set the status code for a redirection.

-- lighttpd


Files

mod_redirect.c (6.81 KB) mod_redirect.c Source code that adds support for url.redirect-found to return status code 302 rather than status code 301 -- angelo Anonymous, 2007-11-11 03:32
Actions #1

Updated by Anonymous about 17 years ago

Perhaps it would be easier to add a new setting, since the only two status codes that are used for redirection are 301 and 302.

I would recommend leaving the url.redirect to using the permanent status code of 301. To redirect with the found status code of 302, a new setting such as redirect-temp or redirect-found would be ideal.

Example:

url.redirect-found = (

".*" => "http://www.%1"
)

I took the mod_redirect.c from version 1.4.18 and modified the code to include this functionality. It should be attached to this ticket.

-- angelo

Actions #2

Updated by stbuehler almost 17 years ago

  • Status changed from New to Fixed
  • Resolution set to duplicate

See #1475 for further discussion.

Actions

Also available in: Atom