Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th Jul 2012, 01:37 PM   #1
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 61
Thanks: 15
Thanked 8 Times in 7 Posts
Default
problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Please help!

I have a problem with a clients website which is redirecting to the mobile site on his Samsung Laptop N145 plus.

The redirect is installed on wordpress and has been working fine. It's detecting the screen width <1023


My client says he was able to view the site fine on his laptop the other day but now it is redirecting him to the mobile site everytime.

Additionally, the mobile site is not loading properly. It is not showing the header image on the home page and only showing the navigation bar.

It works fine on my iPhone, Laptop & PC

Hoping someone can help me quick!

Thanks
Justin
Justin B is offline  
Unread 4th Jul 2012, 04:50 PM   #2
Mobile+WP = JumpMobi.com
War Room Member
 
Jay Moreno's Avatar
 
Join Date: 2009
Location: San Antonio, Tx
Posts: 1,270
Thanks: 301
Thanked 449 Times in 309 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Your seeing one of the pitfalls of using a javascript screen size detection redirect, javascript doesn't always detect the screen size properly - change it out for user agent based JavaScript, PHP or a .htaccess redirect depending on what type of website it is.

HTH

Sorry, I am too busy helping people to think of a cool signature!
Jay Moreno is offline  
The Following User Says Thank You to Jay Moreno For This Useful Post:
Unread 4th Jul 2012, 06:32 PM   #3
I Do Voice Over Work
War Room Member
 
rlhurst's Avatar
 
Join Date: 2011
Location: Oregon
Posts: 581
Thanks: 34
Thanked 129 Times in 96 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Originally Posted by Justin B View Post


The redirect is installed on wordpress and has been working fine.
Get Jay's WP redirect plugin... click on his sig image.

I do voice over work... here's a SAMPLE
rlhurst is offline  
The Following User Says Thank You to rlhurst For This Useful Post:
Unread 5th Jul 2012, 07:40 AM   #4
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 61
Thanks: 15
Thanked 8 Times in 7 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Thanks. I just bought it.


@Jay. I connected with you on Skype,. Need some assistance with your WP plugin.
Justin B is offline  
Unread 22nd Jul 2012, 09:39 PM   #5
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

It does not mean the script is not detecting properly. It means your friends laptop has a screen width of less than 1023 pixels and thus why they are being shown the mobile site.

WillR is offline  
Unread 23rd Jul 2012, 10:07 AM   #6
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 237
Thanked 1,377 Times in 676 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

I used to have a N145 Plus, and can confirm that the default screen resolution is 1024 x 600. Which means that either A) your friend changed the default screen resolution to something lower, or B) whatever browser he is using is not sending the correct screen information to your redirect script (I have seen this happen with certain versions of Android browsers, but never heard of it happening with regular "desktop" browsers like IE or Firefox).

You could ask your friend whether or not he changed the screen resolution, then you would be able to pinpoint the issue (assuming, of course, that your redirect script was set up properly in the first place).

But regardless... redirects based on screen size will work great for the majority of your site's visitors, but they are certainly not bulletproof.


Brandon Tanner is offline  
Unread 23rd Jul 2012, 12:46 PM   #7
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 61
Thanks: 15
Thanked 8 Times in 7 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Jay managed to sort it for me with his Wordpress plugin so it's all fixed and sorted now.
Justin B is offline  
Unread 23rd Jul 2012, 02:50 PM   #8
HyperActive Warrior
War Room Member
 
HostWind's Avatar
 
Join Date: 2010
Location: Tulsa, OK
Posts: 343
Thanks: 25
Thanked 45 Times in 45 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

What plugin did he use? May be useful for others.

HostWind is offline  
Unread 25th Jul 2012, 03:59 PM   #9
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 61
Thanks: 15
Thanked 8 Times in 7 Posts
Default
Re: problem with redirect, please help..
Share on: 
fb share twitter share gplus share more share

Originally Posted by HostWind View Post

What plugin did he use? May be useful for others.
Check his signature in post #2 in this thread. That's the plugin I'm using.
Justin B is offline  
Closed Thread


Bookmarks

Tags
problem, redirect


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:00 AM.