0

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:

http://abcuniversity/_windows/default.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F%255Fwindows%252Fdefault%252Easpx&Source=%2F_windows%2Fdefault.aspx

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.

http://abcuniversity/sites/college1/_windows/default.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F%255Fwindows%252Fdefault%252Easpx&Source=%2F_windows%2Fdefault.aspx

Is there any way to do this?

2
  • 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
0

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

2
  • 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
0

I got this working with below URL:

http://abcuniversity/_login/default.aspx?ReturnUrl=%2fsites%2fcollege1%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252Fsites%252Fcollege1&Source=%2Fsites%2Fcollege1

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

2
  • 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.