The site I am working on is using "login.aspx" (Templates/Public/Pages/Login.aspx) as the default login page. This means that to login, you go to an URL looking like this:
This means that the URL points directly to the page type and not an instance of it. Also, we cannot determine which language is currently in use, Swedish or English.
Any ideas on how to solve this?
Is it possible to create a login page using page type "login.aspx", determine its URL and then add it to Web.config (below authentication mode forms)?
I am using EPiServer CMS 5.2.375.133.
There are probably better solutions than this, but you could create a second aspx which only redirects to your login page instance (it can get that from a setting on the start page for example, using DataFactory.Instance.GetPage(PageReference.StartPage)), and use that page as forms login. Watch out for access rights problems and infinite loops though :)
Ah... So I can't use the "Login.aspx" template/page type and create a new login page with a "pretty URL"?
I thought you had tried that and it didn't work. I haven't tried any of the approaches, I'm just guessing :)
Ok, thanks anyway :-)