homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Need Help With Mobile Redirects

 4:27 am on Jun 27, 2013 (gmt 0)

I have a website that is written in html. I used a javascript in my desktop version site to redirect mobile users to my mobile website version. Now I have included a link back to my desktop version from my mobile site. How do I make the link so it stops the javascript from redirected back to mobile.

I searched the net but cant find a solid answer.

Also, I am having a problem of mobile pages showing up in regular desktop search now. Is there a java code that I can use to redirect desktop users from my mobile site to my desktop version.

I used all proper google codes but I think the mobile version is getting indexed before google can see the tags in my desktop site that says its the same page but one is for mobile and one is for desktop.

P.S. Just put mobile site online last week and am still in the process of creating it. Any ideas?



 5:37 pm on Jun 27, 2013 (gmt 0)

I have a website that is written in html.

I would hope so.


 5:52 pm on Jun 27, 2013 (gmt 0)

Normally, you would set a cookie when they click to go to your main site. Then, on each request, only redirect if the cookie is absent.

Just make sure to provide a way back to the mobile site for your users as well, so they don't inadvertently get stuck on your normal site.


 10:57 am on Jun 28, 2013 (gmt 0)

I think it's much much better to not create mobile versions of normal websites. Use media queries to create so called "responsive design" instead. You'll only have one website that has multiple layouts and via CSS the layout that fits the screen size best will be selected ...

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved