HTTP redirection to HTTPS

I have a customer using a W2K12 server. It is a DNS and unfortunately their server domain is the same as their internet domain. Their web site is hosted elsewhere (the IP address of the web site is say 1.2.3.4). So I went in to the DNS on their server and made a Host(A) record called www and pointed it to that IP address.

   All was well until they has a new ad agency re-write their web page. So I went in to their DNS on their server and changed the Host(A) for www to the new IP address. If I fall out to the command prompt and ping www.company.com it resolves to the right IP address but.... whenever they open either IE or Chrome and type in http://www.company.com it redirects to https://company.com (http to https) and there is nothing on 443 so they get the "Page Not Found" error.

Where is this redirection from http to https taking place and how can I end it?
LVL 15
LockDown32OwnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ITSysTechSenior Systems AdministratorCommented:
Could you run this on a computer with this issue, from a command prompt and try it again? ipconfig /flushdns
0
ITSysTechSenior Systems AdministratorCommented:
Are they using IIS or Apache to run the www.company.com ? If IIS then look here.

1.JPG
0
LockDown32OwnerAuthor Commented:
They are using IIS on the server but I just noticed that even off-site the redirection occurs. So wouldn't the redirection have have to be somewhere in their Internet DNS?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Best to stick with normal DNS conventions to get this working.

1) Setup an A record for foo.com (bare domain).

2) Setup a CNAME record for www referencing foo.com (or '@' shorthand).

3) Generate a LetsEncrypt cert to cover both domain + www, as in...

certbot-auto certonly --no-self-upgrade --non-interactive --rsa-key-size 4096 --email your-email-addr-here --agree-tos --webroot -w /var/www/html -d foo.com -d www.foo.com

Open in new window


4) Setup redirects of http domain + http www + https www to foo.com + likely all will work perfectly well.
0
footechCommented:
The redirection isn't in DNS, but within the site itself.
However, I'm wondering if the problem is actually the redirection to use HTTPS, or the fact that you're going from "www.company.com" to "company.com".  Use of "company.com" will cause you issues since the AD domain name is the same as the public domain.  "company.com" inside your AD will resolve to each of your AD servers, and you do not want to change or add to that.
0
LockDown32OwnerAuthor Commented:
I am aware that using company.com is an issue and it can all go away if I can find out where this redirection is being done and reverse it.

   Once again the redirection is global. It happens internally and externally so it isn't in their server. When you open a browser and type in http://www.company.com it changes (redirects) the browser to https://company.com

Where is this redirection happening?
0
it_saigeDeveloperCommented:
The redirection is happening on the web server.  The external dns servers only direct traffic to the company's website.  The web server instance would then redirect from http to https and strip the www from the uri.

-saige-
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LockDown32OwnerAuthor Commented:
That seems to make the most sense. Being done by the Hosting service. Something I really have no control over. Thanks!
0
footechCommented:
I already mentioned that the redirection isn't due to DNS, but is done via the site.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Chrome

From novice to tech pro — start learning today.