title: ASP.NET Multiple Login Pages based on which folder user attempts to access
body: <p>I have developed an application in ASP.NET 3.5 which utilizes the Membership and Roles Providers and Forms Authentication to manage user access and profiles.</p>
  
  <p>There are various area's of this application that are only to be used by an admin users whom login using their email and password and the rest of the users log in using their telephone number and password via their iPhone.</p>
  
  <p>For simplicities sake, I would like to have two different login pages, one that is formatted for the iPhone and performs the correct validation for users adding a telephone number and the other for the application administrators.</p>
  
  <p>I want to redirect the user to their respective login page based on which folder they are attempting to access. For example say I have an application structure like this -</p>
  
  <p>/Admin <br />
  /Couriers <br />
  /Customers <br />
  /Whatever <br />
  Default.aspx <br />
  iPhoneLogin.aspx <br />
  adminLogin.aspx <br />
  Web.config <br /></p>
  
  <p>I want to be able to redirect users who go to www.myapp.com/Whatever to iPhoneLogin.aspx and users to go to www.myapp.com/Admin to adminLogin.aspx</p>
  
  <p>Can anyone suggest a way of accomplishing this through the web config if possible?</p>
  
  <p>If not, has anyone any other suggestions on how to accomplish this?</p>
  
  <p>Thanks,
  Tristan</p>