Page 1 of 1

Mobile Redirect Problems

Posted: 2021-07-21 21:05
by jangle
Hello Experts,

I host with Gate and use website builder for a website. I have link that link to and appgini app. Everything work fine when accessing from a computer. However when accessing from a mobile device, to site adds "mobile" to the url. Of course then my AppGini app cannot be found because mobile is not part of the url.

Try https://allfirstrespondersmatter.org/AFRM/
Then mobile.allfirstrespondersmatter.org/AFRM/

Any thoughts?

Thanks

Re: Mobile Redirect Problems

Posted: 2021-07-24 15:31
by jangle
Still working on this.

I think one way to resolve the file not found would be to load my appgini files to both the the web directory and also to the mobile directory.

If there any reason that this should not be done? Meaning having the appgini files in two locations?

Thanks in advance.

Jim

Re: Mobile Redirect Problems

Posted: 2021-07-24 16:41
by jsetzer
If I got it right, this is not a problem of appgini but a problem of your website builder tool which seems to generate relative URL's rather than absolute URL's. Can you create absolute URL's giving the full protocol, server and path? Don't know why any website building tool should prepend anything to a fully defined absolute URL.

If you can't: If it always prepends "mobile." maybe you can create a subdomain in your hosting package and internally redirect that subdomain to the appgini directory.

I'm using subdomains a lot and usually this works just fine.

Re: Mobile Redirect Problems

Posted: 2021-07-26 14:51
by jangle
Yes sir, not an appgini problem, but one with my web designer.

However as always, your information was very valuable.

"If it always prepends "mobile." maybe you can create a subdomain in your hosting package and internally redirect that subdomain to the appgini directory."

WORKED and solved my problem.

Thank you!!!

Jim