• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

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?
0
LockDown32
Asked:
LockDown32
  • 3
  • 2
  • 2
  • +2
1 Solution
 
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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now