I am trying to configure access to a web portal hosted on a private WAN for internet users, originally the plan was to use split-DNS to resolve the hostname depending on what ip the client was coming from, but this can't be done because the public DNS servers have to point to the private WAN ip instead of the public ip we configured for the site.
I know now that this can't be done with DNS alone, but I am no web developer and have little experience trying to configure this kind of url rewriting or redirect or if that is even a viable solution.
Here's what I need to happen:
Private WAN users need to be able to access www.example.com at 5.6.7.8
Internet users need to be able to access www.example.com at 1.2.3.4 (public ip for 5.6.7.8) or public.example.com at 1.2.3.4 but still be able to resolve links so that when they hit www.example.com/links.html it will resolve to public.example.com, but ONLY for the internet users.
I'm at a loss at this point and not even sure it's possible so any help would be appreciated!!
Thx!