E
E
Eugene Shel2015-12-25 11:39:36
htaccess
Eugene Shel, 2015-12-25 11:39:36

How to redirect by screen resolution in .htaccess?

I now have forwarding on an incoming device configured.

RewriteCond %{HTTP_USER_AGENT} (?i:midp|samsung|nokia|j2me|avant|docomo|novarra|palmos|palmsource|opwv|chtml|pda|mmp|blackberry|mib|symbian|wireless|nokia|hand|mobi|phone|cdm|upb|audio|SIE|SEC|samsung|HTC|mot-|mitsu|sagem|sony|alcatel|lg|eric|vx|NEC|philips|mmm|xx|panasonic|sharp|wap|sch|rover|pocket|benq|java|pt|pg|vox|amoi|bird|compal|kg|voda|sany|kdd|dbt|sendo|sgh|gradi|jb|dddi|moto|iphone|android)
RewriteRule  '^([^m]*)?$'  http://ewac.ru/mobile.html [R=301,L]

I started tracking in the metrics, it doesn’t work correctly, there are a lot of redirects from stationary computers, here is an example
3ceb3a32b1cf42c98af33e66fca04091.png
of this, a question arose, tell me how to redirect from devices with a screen resolution of
640 × 960 | 640 × 1136 | 640 × 1136 | 1334 × 750 ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question