GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how can I redirect my mobile traffic? (https://gfy.com/showthread.php?t=971705)

Doctor Feelgood 06-03-2010 05:51 PM

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

DateDoc 06-03-2010 05:53 PM

Sign up for one of the mobile sponsors and see what redirect code they use.

Doctor Feelgood 06-03-2010 07:24 PM

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;
}
?>


kristin 06-03-2010 07:45 PM

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 submissions 06-03-2010 07:47 PM

Any additional feedback on this? Piqued my curiosity

svzcom 06-03-2010 08:05 PM

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';
}

Hope this can help you :thumbsup

fatfoo 06-03-2010 08:14 PM

Search on Google for the scripts you need.

epitome 06-03-2010 08:17 PM

Quote:

Originally Posted by kristin (Post 17208839)
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.

Since she can't, I will. :)

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>

Put that in your header...

kristin 06-03-2010 08:44 PM

Quote:

Originally Posted by epitome (Post 17208936)
Since she can't, I will. :)

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>

Put that in your header...

Thank you, thank you. :)

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);
}
?>

Doctor Feelgood 06-03-2010 09:59 PM

sweet! thanks

bigalownz 06-03-2010 10:19 PM

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]

mmcfadden 06-03-2010 10:23 PM

just dropping my line

craftyc 06-03-2010 10:47 PM

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.

kristin 06-03-2010 10:52 PM

Quote:

Originally Posted by craftyc (Post 17209282)
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.

How were you re-directing it? Did you subdomain it?

Jack Sparrow 06-03-2010 10:55 PM

Quote:

Originally Posted by mmcfadden (Post 17209227)
just dropping my line

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".

Bird 06-03-2010 11:01 PM

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/

charlie g 06-03-2010 11:03 PM

Quote:

Originally Posted by craftyc (Post 17209282)
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.

This is true.

Bird 06-03-2010 11:03 PM

Hawhaw is a Kick Ass script for beginners..

http://hawhaw.de/

mmcfadden 06-03-2010 11:07 PM

Quote:

Originally Posted by mrfrisky (Post 17209310)
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".

I posted so I could come back to this thread... bookmarked type of thing.

Damn man... go fucking steal some shit or something

charlie g 06-04-2010 12:07 AM

Thanks
 
Quote:

Originally Posted by Bird (Post 17209385)
Hawhaw is a Kick Ass script for beginners..

http://hawhaw.de/

Thanks Bird....some useful information does crop up here from time to time.


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