Created
March 6, 2011 07:28
-
-
Save umorigu/857109 to your computer and use it in GitHub Desktop.
PukiWiki: /pukiwiki.php?... へのアクセスを /?... へ301リダイレクトする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$request_uri = $_SERVER['REQUEST_URI']; | |
$uri = preg_replace("/\/pukiwiki\.php/", "/", $request_uri, 1); | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: $uri"); | |
echo $uri; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment