Skip to content
Snippets Groups Projects
Commit ae107b8d authored by Brett Bieber's avatar Brett Bieber
Browse files

Add rewrite condition that checks that the user agent is not an ipad (untested)

parent 659336f3
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,9 @@ RewriteCond %{QUERY_STRING} !mobile=no$
# If cookie wdn_mobile = no, don't redirect
RewriteCond %{HTTP_COOKIE} !^.*wdn_mobile=no.*$ [NC]
# If iPad user, don't auto-redirect to mobile
RewriteCond %{HTTP_USER_AGENT} !ipad [NC]
# if the browser accepts these mime-types, it's definitely mobile, or pretending to be
RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC,OR]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment