CNAME and Redirection Code Instructions Table of Contents Using a Custom Domain/SubDomain .................................................................................................... 3 Specific Provider Instructions ................................................................................................................ 3 1&1............................................................................................................................................. 3 DNS Park .................................................................................................................................... 4 eNom.......................................................................................................................................... 4 Eurodns.com .............................................................................................................................. 4 EveryDNS.net ............................................................................................................................. 5 Gandi.net ................................................................................................................................... 5 Hostgator ................................................................................................................................... 6 Hover.com.................................................................................................................................. 6 ix web hosting ............................................................................................................................ 6 Lunarpages ................................................................................................................................. 7 MyDomain.com.......................................................................................................................... 7 Myhosting.com .......................................................................................................................... 7 Network Solutions ..................................................................................................................... 8 No-IP .......................................................................................................................................... 8 Register.com .............................................................................................................................. 8 Yahoo! Small Business ............................................................................................................... 9 Adding Redirection code to desktop sites ........................................................................................... 10 GoDaddy .................................................................................................................................. 10 Intuit ........................................................................................................................................ 10 1&1 .......................................................................................................................................... 11 Last Updated: Friday, 02 March 2012 2 Using a Custom Domain/SubDomain In order to create a new subdomain for your mobile site (i.e. m.domain.com), sign in to your account at your DNS provider's website. Typically, this is your registrar, or company you bought the domain name from, e.g. GoDaddy, however in some setups it will be your hosting provider. Go to the DNS management page. CNAME records may be in a section called DNS Management or Name Server Management. You may have to enable advanced settings to create a CNAME record. Please contact your DNS provider directly if you can't locate the CNAME management options. 2. Create a new CNAME record with the following parameters: Host: m (or any other subdomain) Destination address: lb.gomobi.info. 3. Your CNAME record is now configured to point to goMobi. It can take up to 48 hours for DNS settings to take effect. 1. Specific Provider Instructions Creating a DNS CNAME differs from provider to provider - if you're having trouble settings up your CNAME check if your provider is listed below. 1&1 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Log in to your account at https://admin.1and1.com If it's not already selected, click the Administration tab. Click Domains. The Domain Overview page appears. From the New drop-down menu, select Create Subdomain. (If you've already created a subdomain for your website's address, skip to step six.) Enter m and click OK. Select the checkbox next to the subdomain. (Example: m.mydomain.com) From the DNS menu, select Edit DNS Settings. Click the radio button next to CNAME. Next to Alias, enter lb.gomobi.info Click OK. Last Updated: Friday, 02 March 2012 3 DNS Park 1. 2. 3. 4. 5. 6. 7. 8. Log in to your account at DNS Park. On the left side, click DNS Hosting. Click the domain you'd like to use with goMobi. Since DNS Park is your hosting service, and not your domain registrar, be sure that your domain points to DNS Park's nameservers. Click Alias Records. Under Host Name, enter m Under Destination Name, enter lb.gomobi.info Click Add Alias. eNom 1. 2. 3. 4. 5. 6. Log in to your account at www.enom.com. From the drop-down menu at the Domains tab, select My Domain. You'll be directed to the Manage Domains page. Click the domain that you'd like to use with goMobi. Click Host Settings. To add a CNAME record, click NEW ROW. If you've already created a CNAME record for the address, simply edit the existing CNAME record. Enter m for step one. As the host name, enter lb.gomobi.info Click Save. Eurodns.com 1. 2. 3. 4. 5. 6. 7. Log in to your account at eurodns.com. Click My Domains in the My Domains menu on the left side of the page. A table listing your domains should appear. Click the DNS column on the row of the domain you wish to change. The DNS records for your domain should now be displayed. From the Add... drop-down menu of the HOST NAME table, choose Host Alias and click the Add button next to it. In the Alias: field, add m In the Host Name: field, add lb.gomobi.info Click the Save Settings button. Last Updated: Friday, 02 March 2012 4 EveryDNS.net 1. 2. 3. 4. 5. 6. 7. 8. Log in to your account at EveryDNS.net On the left side, click the domain you'd like to use with goMobi. Since EveryDNS.net is your hosting service, and not your domain registrar, be sure that your domain points to EveryDNS.net's nameservers. This will allow your CNAME record configuration to take effect. Below Add a Record, you can create your CNAME record. Next to Fully Qualified Domain Name, enter m Select CNAME as the Record Type. Enter lb.gomobi.info as the Record Value. Click Add Record. Gandi.net 1. 2. 3. 4. 5. 6. 7. Log in to your account at gandi.net. Click the Administration tab and then the control panel link. Click the domain you want to manage and go to Technical Settings. Click Manage DNS zone file. Click Add an entry Name Fill in this field with m. Type Change this menu to CNAME. Value Enter lb.gomobi.info Click Submit. You should be back to the list of entries. Click Submit Changes GoDaddy Log in to your account at www.godaddy.com 2. Open the Domains tab and select My Domain Names. You'll be directed to the Domain Manager page. 3. Click the domain that you'd like to use with goMobi. 4. Click the Total DNS Control And MX Records in the box entitled Total DNS Control. Note that adding entries to the Manage Subdomains section does not create a CNAME record. 1. Last Updated: Friday, 02 March 2012 5 Click Add New CNAME Record in the box labelled CNAMES (aliases). If you've already created a CNAME record for the address, click the marker icon under the Actions column next to the existing CNAME record. 6. For the Name, enter the subdomain of the address you want to use for your goMobi site. For example, if you picked m.example.com as your address, enter m here. 7. Enter lb.goMobi.info as the Host Name. Specify a TTL or use the default setting of 1 hour. 8. Click OK. In the Review and status box, you can see the results of your updates. 5. Hostgator 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Log into Plesk Under Hosting Services, click on Domains Find the domain in question, and click on the corresponding link that says "Control Panel" (on the far right side) Click the "Websites & Domains" tab Click the "DNS Settings" link Click on "Manage" for the appropriate domain To edit an existing record, click on the record under "Host" Change the "Record type" to CNAME (if necessary) For "Domain name", put in the subdomain you want to host (most likely will be 'm'). For "Canonical name", change it to lb.gomobi.info Hover.com Go to Hover.com, click Sign In and log in to your account. 2. 2. On the "DNS" tab, click "add new" and select CNAME. 3. 3. Under CNAME, add an entry for m 4. 4. Point it to lb.gomobi.info 1. ix web hosting Log in to your account at ix web hosting. 2. Click Manage below the Hosting Account section. 3. On the left side, click the domain you'd like to use with goMobi. 1. Last Updated: Friday, 02 March 2012 6 4. 5. 6. 7. 8. Next to DNS Configuration, click EDIT. Click Add DNS CNAME Record. Under Name, enter m Enter lb.gomobi.info under Data. Click Submit. Lunarpages • According to lunarpages.com, you can contact the Helpdesk at support@lunarpages.com to create a CNAME record. You can't do this yourself with the current interface. MyDomain.com 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Log in to your MyDomain.com account. Click on the My Services tab. Under Manage My Services, click on Manage Services by the Web Hosting package you have. Go to Domain Overview. Click on Domain Administration. Choose the domain name you would like to make changes to. Click on the DNS tab, under which you will then choose DNS Records. Click on Add New DNS record. From the drop-down menu, select CNAME and click on Next. Enter the custom URL you have chosen, for example, if you would like to set up m.yoursite.com, do the following: Domain Canonical Name lb.gomobi.info Myhosting.com 1. 2. 3. 4. 5. 6. 7. Go to http://myhosting.com. Click on the Account link at the top of the page. Log in with your Domain Name and Password. Click on the Domain Name tab. Click DNS Management in the left-hand pane. Click the Manage DNS button. Add the following ALIAS (CNAME) RECORDS: m points to lb.gomobi.info Last Updated: Friday, 02 March 2012 7 Network Solutions 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Go to www.networksolutions.com. Click the Account Manager tab at the far right of the top menu. Select Log In from the drop-down menu. On the Account Manager Login page, enter your User ID and Password (which may have been referred to previously as a User Name or Account Number). Click the Domains left menu tab. Click Manage Domain Names. Select the check box next to the domain you're using with goMobi. Click Edit DNS. On the DNS Manager Settings page, in the Host Aliases: CNAME Records section, click Add/Edit. As Alias, enter m. As the Host Name, enter lb.gomobi.info Click Continue. No-IP 1. 2. 3. 4. 5. 6. 7. Log in to your account at No-IP. On the left side, click Host/Redirects. Click Manage underneath Host/Redirects. Click Add for a new entry, or click Modify and skip to step six for an existing entry. Enter the m, and select your domain name. Select DNS alias CNAME at the host type. Enter lb.gomobi.info as the Target Host and click Modify. Register.com 1. 2. 3. 4. 5. 6. Log in to your account. Under the My Accounts tab, click on the domain for which you would like to create a CNAME record. Under the Advanced Technical Settings heading, click Edit Domain Alias (CNAME). Enter m in the first box that is immediately to the left of your domain name. Enter lb.gomobi.info in the box to the right. Click Continue. Last Updated: Friday, 02 March 2012 8 7. Review what you typed and click Continue to confirm. Yahoo! Small Business • • • • • • • Log in to your account at smallbusiness.yahoo.com Click Domain Control Panel below the domain you'd like to use with goMobi. Click Manage Advanced DNS Settings. Click Add Record. In the Source field, enter m Enter lb.gomobi.info in the Destination field. Click Submit. Last Updated: Friday, 02 March 2012 9 Adding Redirection code to desktop sites GoDaddy Website Tonight sites 1. 2. 3. 4. 5. Log in to the WebSite Tonight account [using the customers login credentials]. From the Design menu, select Launch Page Designer . From the Page tab, go to the Properties menu, and then select Page. Select the JavaScript tab 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: Last Updated: Friday, 02 March 2012 10 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) Last Updated: Friday, 02 March 2012 11 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/". Last Updated: Friday, 02 March 2012 12