NetTalk Central

Author Topic: Redirecting To A Mobile Website  (Read 5178 times)

AZIS350

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Redirecting To A Mobile Website
« on: February 16, 2012, 12:16:50 PM »
I have a question not so much related to NT as it is a general question regarding how to forward a registered domain name so that a mobile website (developed with NT) retains it's mobile 'framework'. I am forwarding a domain name to the IP address of the server that hosts the web server, since I do not want the IP address to show in the URL bar. Typically this has never been a problem for our regular NT web applications since they were not designed for mobile platforms - and it works great. However, what happens in the mobile environment is that the web site does not size to the mobile device as it would if you enter the URL directly. These are the two options I have to forward a domain to an IP address:

1) Regular Forwarding service, which works correctly in displaying the mobile application in the correct screen resolution. However, it displays the IP URL address in the URL bar instead of the domain name.

2) Frame Redirect, which works perfectly for showing only the domain name in the URL bar, however the mobile application is greatly diminished in size (as if it does not recognize the mobile device or viewport mode). This occurs whether I am linking from a regular website, or type the domain name directly into the URL bar.

I have the NT mobile app compiled specifically in 'mobile' mode, am using viewport and it works perfectly well as long as I enter the actual IP address:port.

Any recommendations on how to accomplish showing just the domain name in the URL bar as well as having the mobile app take on the characteristics of the mobile device as it does normally when an IP address is entered? Thanks.


kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Redirecting To A Mobile Website
« Reply #1 on: February 16, 2012, 02:49:51 PM »
what about adding an A record to the DNS eg mobile.mywebsite.com which points to the ip?

and I wonder if rather than auto redirecting if it detect a mobile device, you unhide a button which when clicked opens the above domain?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Redirecting To A Mobile Website
« Reply #2 on: February 17, 2012, 03:14:02 AM »
hi Bob,

I think what you're asking is this;

If I have 2 domains, www.capesoft.com and mobile.capesoft.com, how do I force the site into mobile mode when the user uses mobile.capesoft.com? Is that right?

cheers
Bruce


DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Redirecting To A Mobile Website
« Reply #3 on: February 17, 2012, 05:23:24 AM »
1) Regular Forwarding service, which works correctly in displaying the mobile application in the correct screen resolution. However, it displays the IP URL address in the URL bar instead of the domain name.

I own I domain name at GoDaddy.  I can forward the domain name to point at a particular IP address.  I run into the same issue as AZIS350 mentioned above.  I would like a domain name in the address bar versus an IP address. 

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Redirecting To A Mobile Website
« Reply #4 on: February 17, 2012, 06:25:35 AM »
Instead of Domain Forwarding you should use DNS.
ie create a DNS record for your domain, and set it to the IP number of your server.

Cheers
Bruce

AZIS350

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
    • Email
Re: Redirecting To A Mobile Website
« Reply #5 on: February 17, 2012, 08:12:04 AM »
Thanks everyone for your replies.

I'll try your suggestion Bruce. That should work.

BTW Bruce, I want to thank you and your team again for this wonderful tool called NT 6! We have just released our first dedicated mobile app this morning based upon NT6 and the phones are ringing off the hook from our clients. Our mobile app looks like a native app on iphones and android phones and that is a big selling point for our clients.

Thanks again!

Bob Zimmerlich

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Redirecting To A Mobile Website
« Reply #6 on: February 17, 2012, 10:07:24 AM »
Instead of Domain Forwarding you should use DNS.
ie create a DNS record for your domain, and set it to the IP number of your server.

Cheers
Bruce


I don't know if I can do that with GoDaddy.  I'll check on it.  Thanks Bruce!

"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11