Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> iPhone Sniffer


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 ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
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>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library