Created
June 24, 2013 08:02
-
-
Save ytkhs/5848447 to your computer and use it in GitHub Desktop.
UserAgentを見てスマートフォン版⇔PC版をリダイレクトする場合とか
This file contains hidden or 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 | |
header('HTTP/1.1 301 Moved Permanently'); | |
header('Vary: User-Agent'); | |
header(sprintf('Location: %s', $url)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment