solwebsolutions Posted April 13, 2013 Share Posted April 13, 2013 My client has created a QR Code that goes to a specific page on a non-mobile site. The client does have a mobile site, m.customersdomain.com Question is, the QR Code has already been submitted to print for advertising and is going to a regular URL. Is there a way to look for mobile devices that hit this one non-mobile page and redirect them to a specific mobile URL / page? Would this be something in .htaccess file? Basically, I'm looking @ 2 questions: 1. Are you hitting a specific URL (already embedded in the QR Code)? 2. Are you a mobile device? If both are yes >> go to this mobile page Quote Link to comment Share on other sites More sharing options...
solwebsolutions Posted April 13, 2013 Author Share Posted April 13, 2013 All,Have this so far for JS:if ((screen.width <= 700) &¤tpage("regularURL")) {window.location = "mobileurl";}I just need to figure out how to look @ the current URL ...I know currentpage() isn't really a function, but wanted to use it for getting my point across. ...and if it is in fact regular URL, then send them via window.location to mobile URL Quote Link to comment Share on other sites More sharing options...
solwebsolutions Posted April 13, 2013 Author Share Posted April 13, 2013 All,This may do it:if ((screen.width <= 700) &&location.href("regularURL")) {window.location = "mobileurl";} ...maybe??? Any better way? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.