Code Snippet </> Info
Snippet Name: iPhone Sniffer
Description: Easily detect iPhone visitors and redirect them to your iPhone layout.
Note:
Author:
Last Modified: 2014-05-17 22:34:26
Language: .htaccess
Highlight Mode: html
|
Copy Codes: Use Free Notepad ++ |
|
Snap HTML Code Editor: Paste the source code, make changes and instantly see it in live preview. Snap HTML Code Editor
|
|
Copied To Clipboard!
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} .*iPhone.*
RewriteRule ^index\.html$ http://www.mobile.mydomain.com [L]
RewriteRule ^/$ http://www.yourdomain.com/index.html [L]
</IfModule>
|