Welcome, Guest
Username Password: Remember me

Mobile detect then reroute to a specific url
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Mobile detect then reroute to a specific url

Mobile detect then reroute to a specific url 12 years ago #8773

  • kenjah5321
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,

I know you have the feature "force as homepage" that will let you displayed a two different articles for a mobile and desktop versions for the homepage. I was wondering how to do this for a specific url say eyedonation.org/signup

I'm using rsform pro and we have two different forms one mobile and one desktop (and the desktop version were the person can submit/print and sign the document.

We have print materials and a few QR codes that go to a specific url.

What I've done in the past is ask the person to click desktop or mobile version. But it seems to me there maybe a way to do it automatically. My test site is stillnessillness.com/eyebank/

Any help is much appreciated.

Thanks!

Re: Mobile detect then reroute to a specific url 12 years ago #8799

  • kenjah5321
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
OK this is what I figured out. If there's a easier/better way to do it please let me know.

1. Create a directory folder on your site (I called my sighup)
2. Create a file named index.html inside it.
3. Paste the following code into your html doc and replace the links
4. Now you can redirect the mobile user to the mobile a specific page and desktop user to a desktop page.

<head>

<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "www.link-to-mobile-version.html";
}
//-->
</script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="0;URL=www.link-to-desktop-version">
<title>Your site name</title>
</head>

<body>
</body>
</html>

Re: Mobile detect then reroute to a specific url 11 years, 12 months ago #9168

  • cubefree
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
This does not seem work on the new 1.0.3 version, mine went to the desktop URL on my Adroid.
  • Page:
  • 1
Time to create page: 0.06 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.