Created
January 26, 2015 02:58
-
-
Save RyoSugimoto/a6c0b701fb67f777becd to your computer and use it in GitHub Desktop.
UAを判別し、モバイルデバイスからのアクセスなら、専用サイト(ディレクトリ)へ誘導する。
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
RewriteCond %{REQUEST_URI} !/sp/ | |
RewriteCond %{HTTP_USER_AGENT} (iPhone|Android.*Mobile|Windows.*Phone) [NC] | |
RewriteRule ^(.*)$ /sp/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment