I have a web application with multiple site collection. I have enabled form based authentication with custom login page. For windows authentication user I have a button on this page which opens up default authentication login pop up. below is URL which I used:


But this URL is working for only root site collection. It is not working with /sites/college1 path site collection. It throws HTTP 404 error.


Is there any way to do this?

  • Can you add the complete URL that is failing Aug 2 '16 at 14:47
  • I have updated my question with both URLs. Aug 3 '16 at 7:35

Try to configure the managed path of this web application by following the mentioned steps below :

  • in Central Administration > Application Management > manage Web Application > Select your application > from the above ribbon > select Managed path > Make Sure the WildCard Inclusion for sites have been added if not try to add it.

enter image description here

  • I am also here if you need any clarification , Aug 3 '16 at 8:01
  • sites is default managed path created by SharePoint. And as far as I know it is wildcard inclusion. Aug 4 '16 at 7:50

I got this working with below URL:


It still uses root site URL as login but uses separate site collection URL to redirect once User is authenticated.

  • Good to hear that but What was the problem . is it redirect now correctly and dynamically for all subsite without error ? Aug 5 '16 at 12:05
  • I need to change Return URL manually for each site collection manually. I am looking for dynamic solution if there is any. Aug 6 '16 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.