mirror of
https://github.com/civetweb/civetweb
synced 2025-03-28 21:13:27 +00:00
9 lines
246 B
Lua
9 lines
246 B
Lua
![]() |
loc = string.gsub(mg.request_info.request_uri, "page1.lua", "page.lua")
|
||
|
|
||
|
mg.write("HTTP/1.0 301 Moved Permanently\r\n")
|
||
|
mg.write("Location: " .. loc .. "\r\n")
|
||
|
mg.write("Content-Length: 0\r\n")
|
||
|
mg.write("Connection: close\r\n")
|
||
|
mg.write("\r\n")
|
||
|
|