Project

General

Profile

Feature #61

Setting HTTP status code for redirection

Added by Anonymous over 14 years ago. Updated over 11 years ago.

Status:
Fixed
Priority:
High
Assignee:
-
Category:
mod_redirect
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

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

-- lighttpd

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

Associated revisions

Revision 9b14e017
Added by gstrauss over 3 years ago

[mod_webdav] improve PROPFIND,PROPPATCH; map COPY/MOVE Destination

improve PROPFIND,PROPPATCH
map COPY/MOVE Destination to aliases

Merge branch 'bug-1787-webdav-alias-destination' into master

github: closes #61

History

#1

Updated by Anonymous almost 12 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

#2

Updated by stbuehler over 11 years ago

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

See #1475 for further discussion.

Also available in: Atom