Project

General

Profile

Actions

Feature #53

closed

way to redirect http://example.org/blah to https://example.org/blah

Added by Anonymous about 20 years ago. Updated about 18 years ago.

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

Description

I'm looking for a way to redirect all traffic from http://example.org/blah to http*s*://example.org/blah

-- Louis

Actions #1

Updated by Anonymous almost 20 years ago

server.bind = "localhost"
$SERVERsocket == "xxx.xxx.xxx.xxx:80" {
url.redirect = ( "^/blah/.*$" => "https://example.com/blah/",
)

That should work. The reason for the server.bind, is that if you don't put it, by using $SERVERsocket lighttpd will try and bind again to that port.

-- miles.wu

Actions #2

Updated by Anonymous almost 20 years ago

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

-- miles.wu

Actions

Also available in: Atom