SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have implemented FBA on an web application which has a custom login page. The custom page doesn't let the users login via windows authentication even though it is enabled from central admin. Seems like when I have the custom login page enabled, search crawl fails for the web app. The search log shows the error below:

The SharePoint server was moved to a different location. ( Error from SharePoint site: HttpStatusCode Found The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="%2f_LAYOUTS%2fSharePoint.POC%2fLogin.aspx%3fReturnUrl%3d%252f_vti_bin%252fsitedata.asmx">here</a>.</h2> </body></html> --. )

Taking off the custom login page and using the OOB FBA login page fixes the search issue. I understand I can extend the web app to use classic auth and have search crawl. Is there any other way around?

share|improve this question
Custom login page only works with FBA users. I have tried this for windows authentication but i was unsuccessful for windows authentication. – Richa Jain May 13 '14 at 7:44

I was able to resolve this issue by adding a hidden URL in my custom login page as such:

<div style="display:none">
                <a href="/_windows/default.aspx?ReturnUrl=/">click
                here to login</a>                    

This URL lets users login with windows auth which I am hiding because I want users to login using forms. I am guessing search crawler looks out for this URL during a crawl.

share|improve this answer
This did not work for me actually. I didn't find out until I ran a full crawl. The following steps fixed the issue: extend the site which uses classic authentication (xyz) => add the newly created site to the content source => remove the main site ( => add new server mapping for xyz to Not sure if there is an easier way to fix this issue. – Emon Jan 14 '13 at 20:12
Accept your own answer if you have resolved the issue, so question will not reflect in unanswered questions.. – P S Dec 4 '15 at 4:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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