Switching from http to https and back

You have some errors that are related to a bug:

For your problem, can you try to load the main page with curl and show the code. Then it shows the redirection. All your access is from localhost, is there another proxy webserver (redirection might be created by it.