External URL to Internal Website both different domain names

My domain is: suncityproduce.com
My AD domain is: sungroup.com ( we do not own this publicly, it is only internal )
Internal DNS has the following zones:
suncityproduce.com - which I need to delete for complicated reasons.
sunfriends.com

I would like to make it so that our customers can continue to use suncityproduce.com in their browsers but have them be forwarded inside the network to sunfriends.com

If possible, how does one do this?

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

1 Like

I don't fully understand, how is this related to Let's Encrypt exactly?

2 Likes

You won't be able to "forward" anyone (on the Internet) to a name that doesn't resolve to your IP.
Best you can do is to "proxy" the real external name in towards any other site/name [that must remain unknown/unshown to the client].

3 Likes

Thank you for that information. I will investigate how to do this with our current Lets Encrypt certificate.

2 Likes

A few thoughts:

  1. You are really overcomplicating this. You should just have your clients do a 301 redirect from the domain they type, into the one you want to serve.

  2. It doesn't look like you own sunfriends.com or sungroup.com ; if they're used internally, fine.. but your clients should only be directed to public internet pages and -- see #1 -- you shouldn't be trying to proxy anything behind the scenes to internal names.

2 Likes

A (properly working) TLS certificate has no influence or impact on redirect things. So I'm still missing the relationship between your issue and Let's Encrypt to be honest.

Note that this isn't a generic Community for generic computer questions.

3 Likes

Thank you for the response. I understand now that the 301 Redirect is the correct way to do this.
I've never done this before. and I was wondering if I had to do anything with the current Let's Encrypt Certificate that we have for suncityproduce.com

2 Likes

I'll repeat myself: a TLS certificate has no influence or impact on redirects.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.