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?