+ Start a Discussion

Unable to Login into authenticated sites page



I have created a customer portal using force.com sites and provide user authentication using customer portal access. I have the login page that is part of the sites called SiteLogin, this is part of the sites domain that I have in my Org.


I made a HTML copy of the page and then used only the login portion with our official website from where users can login. This was working for few weeks now and all of a sudden today it is not.


When I try to login from my website, it redirects me to the user authentication page instead of the home/landing page, where as if I try to login from the default sites URL it authenticates and redirects me appropriately.


Please help me out on this, I would like my users to login through the official website instead of the default sites URL.







When user login into the sites it will redirect to authentication page instead of home landing page. For this you can create a Custom home page component of HTML Area Type and put the JavaScript for redirection when User is log in. It may be helpful for you.


 You can include this home page component according to specific profile based used home page layout in Wide (Right) Column.


<script type="text/javascript">; 
	var p= ("{!$Profile.Name}" == "custom profile") ? "/Auhorization page" : "/home/home.jsp";
	document.getElementById("AppBodyHeader").innerHTML = "";
	document.getElementById("sidebarDiv").parentNode.setAttribute("className" ,"");
	document.getElementById("sidebarDiv").parentNode.innerHTML = ""; 
	window.location = p;



Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 



Andy BoettcherAndy Boettcher

I have helped a few of my customers do exactly this - and they are still working to date.  Did something change in your org?  (New Site?)  Can you post up the HTML form and inputs you're using (of course I advise to mask your org's Ids) so we can see how you're doing this now?