I am moving several (small) corporate websites over from an iPower VPS (terrible host btw) to LiquidWeb, which means I'm learning all the nuances in the new CP (WHM, cPanel). Now one company has three domain names (with employee only sections), all pointing to the same website (alias/parked domains). In Plesk, if I set them up as Alias domains, going to domain.com or domain.net pointed to the same website, but maintained the domain URL in the address bar indefinitely. Now on the new host, I have them set up as parked domains in cPanel (I thought this was the equivilant to alias). If a user goes to domain.net and follows a link on the page, they are taking to domain.net/link, as it should be.
However when an employee attempts to login at domain.net/login, the form action points to the login script, which in turn uses a PHP Header redirect to take them to the home page (or whichever page they attempted to access when not logged in). But when the header redirects them, it redirects to the domain.com logged in home page, and as the domain has changed it fails the session validation script, so they get redirected to domain.com/login, saying they are not logged in.
I put a note on the login page explaining you may have to login twice for now, but as you know some people just can't understand the interwebz, so I'm still getting lots of emails and phone calls about people not being able to login. Anyway, long story short, where should I start about fixing this problem? I haven't a clue about how WHM/cPanel manages parked domains and how it configures them, so I'm lost about where I should start looking.



LinkBack URL
About LinkBacks
Reply With Quote




