Mobile detect then reroute to a specific url

kenjah5321
12 years, 7 months ago
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!
kenjah5321
12 years, 7 months ago
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>
cubefree
12 years, 7 months ago
This does not seem work on the new 1.0.3 version, mine went to the desktop URL on my Adroid.

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.