![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
|
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 ![]()
__________________
![]() SUBMIT PORN BLOGS HERE ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now Hiring My network is in need of clean, honest, good traders for different niches. Contact |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Outside looking in.
Industry Role:
Join Date: Feb 2005
Location: To Hell You Ride
Posts: 14,243
|
Sign up for one of the mobile sponsors and see what redirect code they use.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
|
does this work?
Code:
<?php if(checkmobile()) header("Location:http://mobile.bangbrosnetwork.com/t1/pps=code/"); function checkmobile(){ if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return false; if(preg_match("/Trident/i",$_SERVER["HTTP_USER_AGENT"])) return false; if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) return true; if(preg_match("/wap\.|\.wap/i",$_SERVER["HTTP_ACCEPT"])) return true; if(isset($_SERVER["HTTP_USER_AGENT"])){ if(preg_match("/Creative\ AutoUpdate/i",$_SERVER["HTTP_USER_AGENT"])) return false; if(preg_match("/MSIE/i",$_SERVER["HTTP_USER_AGENT"])) return false; $uamatches = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "erics", "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", "\d\d\di", "moto"); foreach($uamatches as $uastring){ if(preg_match("/".$uastring."/i",$_SERVER["HTTP_USER_AGENT"])) return true; } } return false; } ?>
__________________
![]() SUBMIT PORN BLOGS HERE ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now Hiring My network is in need of clean, honest, good traders for different niches. Contact |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
GOO!
Industry Role:
Join Date: Sep 2002
Location: Back Home : )
Posts: 9,768
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
I help you SUCCEED
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
|
Any additional feedback on this? Piqued my curiosity
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
|
Here´s an exemple in php:
Code:
<?php if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { header('Location: http://www.google.com'); exit; } ?> and one in javascript: Code:
var uagent = navigator.userAgent.toLowerCase(); if(uagent.indexOf('android') || uagent.indexOf('webos') || uagent.indexOf('iphone') || uagent.indexOf('ipod')){ document.location = 'http://www.google.com'; } ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
ICQ:649699063
Industry Role:
Join Date: Mar 2003
Posts: 27,763
|
Search on Google for the scripts you need.
__________________
Send me an email: [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
So Fucking Lame
Industry Role:
Join Date: Jun 2009
Location: St. Petersburg, FL
Posts: 12,156
|
Quote:
![]() Code:
<!--JAVASCRIPT MOBILE SITE REDIRECTION CODE--> <script type="text/javascript"> MOBILE_URL = "http://redirecturlhere.com"; // Do not edit below var WORDS = ["mobile", "htc", "blackberry", "j2me", "webos", "windows ce", "android", "nokia", "samsung", "LG", "palm", "PSP"]; var WLEN = WORDS.length; for (var i = 0; i < WLEN; i++) { var re = new RegExp(WORDS[i], "i"); if (re.exec(navigator.userAgent)) { window.location = MOBILE_URL; break; } } </script> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
GOO!
Industry Role:
Join Date: Sep 2002
Location: Back Home : )
Posts: 9,768
|
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); } ?>
__________________
Vacares rules. "Usually only fat guys have the kind of knowledge and ability that Kristin has." |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
|
sweet! thanks
__________________
![]() SUBMIT PORN BLOGS HERE ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now Hiring My network is in need of clean, honest, good traders for different niches. Contact |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Aug 2005
Location: NEW ZEALAND
Posts: 1,654
|
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
So Fucking Banned
Join Date: Oct 2008
Location: philly
Posts: 5,099
|
just dropping my line
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Mar 2009
Location: under your skin
Posts: 162
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Almost goners..
Industry Role:
Join Date: May 2008
Location: Netherlands
Posts: 11,420
|
Which isnt allowed anymore but anyways..
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". |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
|
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/
__________________
ICQ:268731675 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Center of the Universe
Posts: 2,758
|
This is true.
__________________
AlanAgus1 at gmail dot com -------------------------------
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
|
__________________
ICQ:268731675 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
So Fucking Banned
Join Date: Oct 2008
Location: philly
Posts: 5,099
|
Quote:
Damn man... go fucking steal some shit or something |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Center of the Universe
Posts: 2,758
|
Thanks
Quote:
__________________
AlanAgus1 at gmail dot com -------------------------------
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |