RewriteRule mobile
Submitted by Sir Squall on Thu, 11/11/2010 - 14:56
A l'heure actuelle, le mobile prend de plus en plus de place sur le web!
C'est toujours pratique de savoir faire des RewriteRule exemple:
#Redirection mobile sports RewriteCond %{HTTP_REFERER} !(.*).cestfait(.*)$ [NC] RewriteCond %{REQUEST_URI} /sport(s)?$ [NC] RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "alcatel|amoi|blackberry|htc-|htc_|lg-|lg/|lge-|portalmmm" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sanyo|sch-|sendo|sgh-|airness|j-phone|mot-|windows ce|midp|iphone" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbianos|nokia|samsung|palm|pantech|sagem|sec-|sie-|sonyericsson|ericsson" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "motorola|i-mate|eten|asus|gigabyte|qtek|vodafone|philips|sharp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "toshiba|siemens|benq|panasonic|wnd|i-mobile|haier|bird|android" [NC] RewriteRule ^(.*) http://mobile.cestfait.ch/sport [R=302,L,NC]
C'est fait !!!
Tags:






1 response to "RewriteRule mobile"
1. Merci qui ?