I built a client site on a subdomain, i.e., www.example.hosting.com for client review and approval. Once approved for going "live" I then setup a new www.example.com single-page site and mirrored it onto the www.example.hosting.com site. Changed the DNS nameservers for www.example.com and it works fine, in that visitors to the "real" site www.example.com experience the site at www.example.hosting.com. Looks great.

However, logins don't work when done from the www.example.com site, but still work fine on the original www.example.hosting.com, even though it's the exact same site I'm trying to log into.

Is the domain used as part of the authentication, and if so, can that be turned off?

Any suggestions/remedies?

Comments

hondaman900’s picture

So, apparently no takers on this, but I did resolve this. The issue was the cookies domain setting in settings.php. This setting was enabled to support CK Finder (server image browsing support for CK Editor) and it pointed to the old domain, not the new domain that was mirroring the old domain.. Changing that to the new mirroring domain name solved the issue.

Hope this helps someone else... :)