Browse Source

moved permanently

Thomas Buck 11 years ago
parent
commit
d0efe018b6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      macros.py

+ 2
- 2
macros.py View File

@@ -96,9 +96,9 @@ def hook_preconvert_compat():
96 96
     fp.write("}\n")
97 97
     fp.write("if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {\n")
98 98
     fp.write("    if (php_sapi_name() == 'cgi') {\n")
99
-    fp.write("        header('Status: 303 See Other');\n")
99
+    fp.write("        header('Status: 301 Moved Permanently');\n")
100 100
     fp.write("    } else {\n")
101
-    fp.write("        header('HTTP/1.1 303 See Other');\n")
101
+    fp.write("        header('HTTP/1.1 301 Moved Permanently');\n")
102 102
     fp.write("    }\n")
103 103
     fp.write("}\n");
104 104
     fp.write("header('Location: '.$loc);\n")

Loading…
Cancel
Save