|
|
|
|
|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
I've noticed some of my sponsors offer a script or code that redirects mobile visitors to their mobile tour. Anyone using something like this? I'm thinking of trying it out. What do you think?
|
|
|
|
|
|
#2 |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
This reminds me that I need to contact Topbucks to ask about their script to redirect mobile traffic to my Topbucks white label site that they did for me.
|
|
|
|
|
|
#3 |
|
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
White label redirect, eh? Sounds interesting...
|
|
|
|
|
|
#4 |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
So far zero sales but I'm barely sending any traffic to it.
|
|
|
|
|
|
#5 |
|
I want to set the record straight - I thought the cop was a prostitute
Join Date: Jul 2008
Location: Los Angeles
Posts: 297
|
FYI, your 2257 notice appears as black text on black background.
|
|
|
|
|
|
#6 | |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
I'm looking at the three ways TopBucks is suggesting doing it. |
|
|
|
|
|
|
#7 |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
OK, This is what I ended up doing and it seems to be working well.
In my htaccess, Code:
DirectoryIndex index.php index.shtml index.html index.htm Then in the index.php file I put this, Code:
<?php
$REGULAR_URL = 'http://cleos-porn-links.com/index.shtml';
$MOBILE_URL = 'http://mobile.cleos-porn-links.com/';
// Do not edit below
$WORDS = array('mobile', 'blackberry', 'j2me', 'webos', 'windows ce', 'android', 'nokia', 'samsung', 'LG', 'palm', 'PSP');
$is_mobile = FALSE;
foreach ($WORDS as $w)
{
if (isset($_SERVER['HTTP_USER_AGENT'])
&& stripos($_SERVER['HTTP_USER_AGENT'], $w))
{
$is_mobile = TRUE;
break;
}
}
$url = ($is_mobile) ? $MOBILE_URL : $REGULAR_URL;
if (!empty($url))
{
header('Location: ' . $url);
}
?>
This way mobile surfers can still reach my regular site but will get presented with a mobile option first. Non mobile surfers will not notice anything different at all and both mobile and non mobile users can still reach any non mobile page too. On a side note... I modified the htaccess in my porntube by adding this, Code:
RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|j2me|symbian|windows.ce) [NC]
RewriteRule ^(.*)$ http://mobile.cleos-porn-links.com/ [R=302,L]
![]() |
|
|
|
|
|
#8 |
|
I want to set the record straight - I thought the cop was a prostitute
Join Date: Jul 2008
Location: Los Angeles
Posts: 297
|
http://mobile.cleos-porn-links.com/ ==> Enter Mobile Site (maybe it only looks that way because I'm using a standard browser).
|
|
|
|
|
|
#9 |
|
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Feb 2009
Posts: 33
|
Good luck Cleo
![]() |
|
|
|
|
|
#10 | |
|
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
Thanks. ![]() |
|
|
|
|
|
|
#11 |
|
wtfwjd?
Join Date: May 2007
Posts: 2,103
|
I plugged in Pimproll's code and tried it out on my LD domain. Looks pretty good. They have a Java and a php version which is quick and easy, but I do like the white label.
Last edited by LD; 2009-09-08 at 03:19 PM.. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|