Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Mobile Marketing (https://www.warriorforum.com/mobile-marketing/)
-   -   problem with redirect, please help.. (https://www.warriorforum.com/mobile-marketing/630199-problem-redirect-please-help.html)

Justin B 4th July 2012 01:37 PM

problem with redirect, please help..
 
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

Jay Moreno 4th July 2012 04:50 PM

Re: problem with redirect, please help..
 
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

rlhurst 4th July 2012 06:32 PM

Re: problem with redirect, please help..
 
Quote:

Originally Posted by Justin B (Post 6549085)

The redirect is installed on wordpress and has been working fine.

Get Jay's WP redirect plugin... click on his sig image.

Justin B 5th July 2012 07:40 AM

Re: problem with redirect, please help..
 
Thanks. I just bought it.


@Jay. I connected with you on Skype,. Need some assistance with your WP plugin.

WillR 22nd July 2012 09:39 PM

Re: problem with redirect, please help..
 
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.

Brandon Tanner 23rd July 2012 10:07 AM

Re: problem with redirect, please help..
 
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.

Justin B 23rd July 2012 12:46 PM

Re: problem with redirect, please help..
 
Jay managed to sort it for me with his Wordpress plugin so it's all fixed and sorted now.

HostWind 23rd July 2012 02:50 PM

Re: problem with redirect, please help..
 
What plugin did he use? May be useful for others.

Justin B 25th July 2012 03:59 PM

Re: problem with redirect, please help..
 
Quote:

Originally Posted by HostWind (Post 6665331)
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.


All times are GMT -6. The time now is 01:14 AM.