Adding Redirection Code to desktop sites

GoDaddy Website Tonight sites

  1. Log into the Website Tonight account (using the customer's login credenitals).
  2. From the Design menu, select Launch Page Designer
  3. From the Page tab, go to the Properties menu, and then select Page.
  4. Select the Javascript tab
  5. Add the code below to the box titled Javascript for <.head>. If there is already code in the box, do not delete it, simply add the code beneath it.
<.script type="text/javascript"
scr="http://detect.deviceatlas.com/redirect.js?m="http://thegomobisite.mobi">
<./script>

(NOTE: replace the "http://thegomobiesite.mobi" with the URL of the customer's actual gomobi site and remove the . prior to script type and /script)

A few things to keep in mind:

  1. You need to use Internet Explorer or another browser to do this (when we tried with Firefox, it was giving a message saying the Javascript was invalid)
  2. The script is inserted on a per-page basis, not globally in the template. What this means is that if you want the subpages to also redirect to the mobile site, you need to repeat the operation for each page of the site. Considering sub-pages might appear separately on search result, it would probably be a good idea to add the code to all the pages. In order to be as user-friendly as possible, rather than using the main URL as destination on all the pages, you can customize it to deeplink to a specific page on a goMobi site, so that e.g. the Contact us page redirects users to the corresponding Find Us page on the goMobi site. This is easily achieved by replacing the "http://thegomobisite.mobi" with a link like "http://thegomobisite.mobi/app/find-us/93597/2/".

Intuit's site builder sites

The redirection code needs to be added to each page individually, very similarly to what happens with toe GoDaddy site builder:

  1. Acess the Site builder and select the page to manage from the "edit page" menu
  2. Go to "Manage Page > Advanced Settings"
  3. Paste the JavaScript code below the "<.head> tag HTML:" box
  4. Save and Publish the changes


<.script type="text/javascript"
scr=""http://detect.deviceatlas.com/redirect.js?m="http://thegomobisite.mobi">
<./script>

(NOTE: replace the "http://thegomobiesite.mobi" with the URL of the customer's actual gomobi site and remove the . prior to script type and /script)

The script is inserted on a per-page basis, not globally in the template.  What this means is that if you want the subpages to also redirect to the mobile site, you need to repeat the operation for each page of the site. Considering sub-pages might appear separately on search result, it would probably be a good idea to add the code to all the pages. In order to be as user-friendly as possible, rather than using the main URL as destination on all the pages, you can customize it to deeplink to a specific page on a goMobi site, so that e.g. the Contact us page redirects users to the corresponding Find Us page on the goMobi site. This is easily achieved by replacing the "http://thegomobisite.mobi" with a link like "http://thegomobisite.mobi/app/find-us/93597/2/".

1&1 site bulder sites

  1. Log into your account
  2. Go to "Settings>Edit header section"
  3. Paste the Javascript code below in the "<.head> tag HTML:" box
  4. Save and Publish the changes

<.script type="text/javascript"
scr="http://detect.deviceatlas.com/redirect.js?m="http://thegomobisite.mobi">
<./script>

(NOTE: replace the "http://thegomobiesite.mobi" with the URL of the customer's actual gomobi site and remove the . prior to script type and /script)

The script is inserted on a per-page basis, not globally in the template. What this means is that if you want the subpages to also redirect to the mobile site, you need to repeat the operation for each page of the site. Considering sub-pages might appear separately on search result, it would probably be a good idea to add the code to all the pages. In order to be as user-friendly as possible, rather than using the main URL as destination on all the pages, you can customize it to deeplink to a specific page on a goMobi site, so that e.g. the Contact us page redirects users to the corresponding Find Us page on the goMobi site. This is easily achieved by replacing the "http://thegomobisite.mobi" with a link like "http://thegomobisite.mobi/app/find-us/93597/2/".

  • Email, SSL
  • 36 Users Found This Useful
Was this answer helpful?

Related Articles

Eurodns.com

Log in to your account at eurodns.com. Click on My Domains in the My Domains menu on the left...

Hover.com

Go to Hover.com, click Sign In and log into your account. On the "DNS" tab, click "add new"...

EveryDNS.net

Log in to your account at EveryDNS.net. On the left side, click the domain you'd like to use...

ix web hosting

Log in to your account at ix web hosting. Click Manage below the Hosting Account section. On...

Cname Record for Subdomain Or Specific Domains

In order to create a new subdomain for your mobile site (i.e m.domain.com), sign in to your...

Powered by WHMCompleteSolution