![]() |
how can I redirect my mobile traffic?
how can I redirect my mobile traffic? Is there a FREE script I can use?
dont reply with "hit me up and ill hook you up" kinda shit. just post it here :321GFY |
Sign up for one of the mobile sponsors and see what redirect code they use.
|
does this work?
Code:
<?php |
Sign into your topbucks account then the mobile program under sales tools ... Mobile redirection script fir webmasters in php, java or htaccess.
I would post the actual script but I'm on my phone posting. |
Any additional feedback on this? Piqued my curiosity
|
Here´s an exemple in php:
Code:
<?php and one in javascript: Code:
var uagent = navigator.userAgent.toLowerCase(); |
Search on Google for the scripts you need.
|
Quote:
Code:
<!--JAVASCRIPT MOBILE SITE REDIRECTION CODE--> |
Quote:
htaccess: #HTACCESS MOBILE SITE REDIRECTION CODE RewriteEngine On RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|webos|android|j2me|palm|nokia|s amsung|symbian|windows.ce) [NC] RewriteRule ^(.*)$ http://www.allgirlmobile.com/?revid=25336 [R=302,L] PHP: <?php $REGULAR_URL = ''; // http://www.evilgeniuscash.com/YOURHOMEPAGE.HTML $MOBILE_URL = 'http://www.allgirlmobile.com/?revid=25336'; // Do not edit below $WORDS = array('mobile', 'htc', 'blackberry', 'j2me', 'webos', 'windows ce', 'android', 'nokia', 'samsung', 'LG', 'palm', 'PSP'); $is_mobile = FALSE; foreach ($WORDS as $w) { if (isset($_SERVER['HTTP_USER_AGENT']) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $w) !== false) { $is_mobile = TRUE; break; } } $url = ($is_mobile) ? $MOBILE_URL : $REGULAR_URL; if (!empty($url)) { header('Location: ' . $url); } ?> |
sweet! thanks
|
this is what i use
#iphone ipod detection RewriteCond %{HTTP_USER_AGENT} ^.*iphone.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Ipod detection RewriteCond %{HTTP_USER_AGENT} ^.*ipod.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #android detection RewriteCond %{HTTP_USER_AGENT} ^.*android.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #opera mini detection RewriteCond %{HTTP_USER_AGENT} ^.*opera.mini.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #blackberry detection RewriteCond %{HTTP_USER_AGENT} ^.*blackberry.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #palm detection RewriteCond %{HTTP_USER_AGENT} ^.*up\.browser|up\.link|mmp|symbian|smartphone|mid p|wap|vodafone|psp|pocket|kindle|mobile|treo.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #nokia detection RewriteCond %{HTTP_USER_AGENT} ^.*nokia.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Samsung detection RewriteCond %{HTTP_USER_AGENT} ^.*sgh.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Sony Ericsson detection RewriteCond %{HTTP_USER_AGENT} ^.*sonyericsson.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Playstation Portable detection RewriteCond %{HTTP_USER_AGENT} ^.*psp.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Motorolla detection RewriteCond %{HTTP_USER_AGENT} ^.*mot.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #HTC detection RewriteCond %{HTTP_USER_AGENT} ^.*htc.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #LG detection RewriteCond %{HTTP_USER_AGENT} ^.*lg.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #iPAQ detection RewriteCond %{HTTP_USER_AGENT} ^.*lg.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #Nokia detection RewriteCond %{HTTP_USER_AGENT} ^.*nokia.*$ [NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] #mobiles detection RewriteEngine On RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc|opera" [NC,OR] RewriteCond %{HTTP_USER_AGENT} “mini|nitro|j2me|midp-|cldc-|netfront|mot|up.browser|up.link|audiovox”[NC,OR] RewriteCond %{HTTP_USER_AGENT} “blackberry|ericsson,|panasonic|philips|sanyo|shar p|sie-”[NC,OR] RewriteCond %{HTTP_USER_AGENT} “portalmmm|blazer|avantgo|danger|palm|series60|pal msource|pocketpc”[NC,OR] RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac| blaz|brew|cell|cldc|cmd-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji |leno|lg-c|lg-d|lg-g|lge-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek |qwap|sage|sams|sany" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|m mp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC,OR] RewriteCond %{HTTP_USER_AGENT} “smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone/|wap1.|wap2.|iPhone|android”[NC] RewriteRule ^(.*)$ http://namobile.naughtyamerica.com/t...jU0NDoyNTo0MA/ [R=301,L] |
just dropping my line
|
if you have mostly search engine traffic, be a little careful. Google can look down on these sorts of things. I redirected a few mobile hits from one of my blogs that was doing well and got punished severely by that illustrious SE.
|
Quote:
|
Quote:
To get back to topic. If you need the best redirect script hit me up and i will email it to you. Whatever you do, use a htaccess redirect code, its the safest way to make sure google dont fucks up your rankings. Php code is really "not done". |
I have these scripts, I teach this at a community college.
Download WURFL Watch my Video http://mmi.mobiquio.com/resources/wu...all%281%29.htm All information you need is here: http://mmi.mobiquio.com/resources/ |
Quote:
|
|
Quote:
Damn man... go fucking steal some shit or something |
Thanks
Quote:
|
All times are GMT -7. The time now is 06:11 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123