homepage Welcome to WebmasterWorld Guest from 54.225.1.70
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
Forum Library, Charter, Moderators: bakedjake

Smartphone, Wireless, and Mobile Technologies Forum

    
Mobile to desktop redirection code
sarfarazali meghani




msg:4567638
 6:05 pm on Apr 24, 2013 (gmt 0)

Hi

Can any one help how to redirect page to page redirection of mobile site (m.example.com) to desktop site (example.com) through htaccess file.

 

travelin cat




msg:4567659
 7:03 pm on Apr 24, 2013 (gmt 0)

Welcome to WebmasterWorld sarfarazali meghani. If I understand correctly, when someone comes to m.example.com/page1.html, you would want them to be redirected to example.com/page1.html and so on? Would this be for non mobile visitors only?

Just trying to get a handle on what you are looking to accomplish.

lucy24




msg:4567703
 10:07 pm on Apr 24, 2013 (gmt 0)

It's exactly the same code that you're already using to redirect the "wrong" forms of your domain name-- typically with/without "www." Capture the whole request and attach it to a fresh request under a different (sub)domain name.

Frankly your much bigger problem is UA detection. It may be simpler to detect the non-mobile user agents. Anything left over is then either a robot or a mobile. You also need a way for the human user to override the redirect if that's their individual preference --or if UA detection makes a mistake, which is bound to happen sooner or later.

Marshall




msg:4567723
 12:33 am on Apr 25, 2013 (gmt 0)

Can any one help how to redirect page to page redirection of mobile site (m.example.com) to desktop site (example.com) through htaccess file.


Bad idea - let the user decide.

Marshall

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Smartphone, Wireless, and Mobile Technologies
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