I am trying to extend a claims based application (which uses a custom token provider) to enable SharePoint Search on SharePoint Foundation 2010. After I extend the application to use windows login I get a 404 error on the page.This is even after setting up the new extended "site" in the alternate access mapping as a Custom zone. I am at a loss because I can't setup my crawl through the Search Service Application without being able to access the zone which contains windows authentication.
Any help would be appreciated.