Automatic redirect to https

ernestomodena

New member
Joined
Feb 5, 2013
Messages
3
We stumbled on a weird problem. We have installed a wildcard ssl certificate on a domain and it al seems ok. We than set a symbolic link from private_html to public_html.

But now we have the following problem http:// is always redirected to https:// and the subdomains can not be reached if used in front of the domain.

There are the following situations happening.
http://domain.com -> https://domain.com
http://domain.com/info.php -> https://domain.com
http://sub.domain.com -> https://domain.com
https://sub.domain.com -> https://domain.com

Working
https://domain.com/info.php
https://domain.com/sub/

There is no .htaccess in the root or subdomain
The command "dig sub.domain.com @127.0.0.1" gives back the right ip
I could not find a redirect in the httpd.conf
The domain is hosted external but is redirected with *.domain.com -> ip
There is no site redirection
There are no domain pointers

My search around the web resulted in no result.

Hopefully one of you can help me find it out.
 
You must have a redirect somewhere. The symbolic link would not do that. Something like that would either have to be in the .htaccess or in the virtual host config. You say the domain is hosted external, then my guess is that is where the problem is. Are you sure they are only pointing dns or are they doing some sort of webserver redirect?
 
The external domains are redirected through dns with the following records

* A xxx.xxx.xxxx.xxx
@ A xxx.xxx.xxxx.xxx
ftp CNAME @
mail CNAME @
www CNAME @

My colleague told me that at first it seems to work normally. He than made a .htaccess to redirect from http:// to htpps:// but had not the result he wanted so he deleted that one. Is it possible that somewhere this .htaccess is still used in a form of cache.
 
Back
Top