How to adding redirection code to desktop sites ?

GoDaddy Website Tonight sites

   1. Log in to the WebSite Tonight account [using the customer’s login credentials].

   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\"

          src=\"http://detect.deviceatlas.com/redirect.js?m=http://thegomobisite.mobi\">

          </script>

          (NOTE: replace the \"http://thegomobisite.mobi\" with the URL of the customer\'s actual goMobi site)

 

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 me 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 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 the GoDaddy site builder:

  1. Access 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 in the \"<head> tag HTML :\" box

  4. Save and Publish the changes

        <script type=\"text/javascript\"

         src=\"http://detect.deviceatlas.com/redirect.js?m=http://thegomobisite.mobi\">

         </script>

         (NOTE: replace the \"http://thegomobisite.mobi\" with the URL of the customer\'s actual goMobi site)

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 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 builder sites

  1. Login to 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\"

         src=\"http://detect.deviceatlas.com/redirect.js?m=http://thegomobisite.mobi\">

         </script>

         (NOTE: replace the \"http://thegomobisite.mobi\" with the URL of the customer\'s actual goMobi site)

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 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/\".

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to using a Custom Domain/SubDomain?

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

How to create a DNS CNAME ?

Creating a DNS CNAME differs from provider to provider - if you\'re having trouble settings up...

How do I change the position of a feature?

To change a position of a feature click on the Options link on the feature you want to change.

Can I change the name of an icon?

You can modify the label of an icon easily by clicking on the Options link on the feature you...

Can I change the icon for a particular feature?

Yes you can; click on the Options link in any of the features and then click on the ‘Change...