Jump to content

Redirect URL to other webapplication


Mike

Recommended Posts

Thank you.

I checked out the touch/detectplatform so now I know what kind of device is accessing the application.

When it is a mobile device I would like to redirect it to another webapplication (mobile uniGUI).

Would then AResponseInfo.Redirect('http://192.168.1.5:8443') in UniGUIServerModuleHTTPDocument work and can I prevent that the user sees the internal address?

 

 

Link to comment
Share on other sites

  • 1 year later...
On 1/29/2019 at 2:25 PM, Hayri ASLAN said:

Hi

Please set Servermodule.options.soAutoPlatformSwitch to true then both mobile and desktop can use same link.

When mobile user try to access, unigui will forward it to "https://www.example.com/m"

Hello Hayri,

Hoping all is good.

I have a strange behavior with mobile version (when url is masked):

i just baught a name domain from NameCheap, and from their cpanel, REDIRECT it to my ip static server.

example :

www.mydomain --> my_ipadress:8077

obeviously i set my unigui project : Servermodule.options.soAutoPlatformSwittrueunigui  to True.

Result :

• When my_ipadress:8077  without masking  (Masked option = False)  then all is OK. Desktop version looks good and mobile version also.

• When my_ipadress:8077  with Masked option = True

Then only desktop is good. Mobile version appears in a scalable view. it's so small on the mobile screen and i have to zoom in + with my finger to get it.

any idea ?

 

i tried also :

www.mydomain --> my_ipadress:8077/m

 

Link to comment
Share on other sites

Here we go :)

Summary :

You just baught a Name Domain and would like to associate it  to your Static IP Adress.

So peaple can open your unigui  hybrid, responsive  application (desktop & mobile) from an URL like :

As service :

http//:www.mynamedomaine:myportnumber

As iis :

http//:www.mynamedomaine/myalias/myproject.dll

OK.

it's important to know this :

From your cpanel (company where you baught your name domaine) like Godaddy, NameCheap, ...

Never do a Redirect URL with masked IP,

Create instead  a record A, wich will point to your ipAdress. 

That's all.

image.thumb.png.e63376aaa4da6e2f800fb7dda7701cdd.png

 

Obviously Servermodule.options.soAutoPlatformSwittrueunigui  to True. 

This will automatically, swich your responsive design to mobile and desktop version.

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...