Skip to content

Instantly share code, notes, and snippets.

@argyleink
Last active December 19, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save argyleink/6021918 to your computer and use it in GitHub Desktop.
Save argyleink/6021918 to your computer and use it in GitHub Desktop.
Dead simple ipad (or whatever), redirect to custom index.html. I made this so that the viewport meta data can be present immediately for ipad, to prevent flashing of content. This is a great way around many JS hacks.
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "ipad" [NC]
RewriteRule ipad.html [L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment