My site on MVC. If I use authentication mode="Windows" GoogleBot indexes site. If I use authentication mode="Forms" what I'm finding is that when I use Google's Webmaster Tools to fetch my site (to see what a GoogleBot sees) it sees this.
HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: /Products/Trouble?aspxerrorpath=/
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Mon, 02 Aug 2010 18:12:13 GMT
Content-Length: 160
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fProducts%2fTrouble%3faspxerrorpath%3d%2f">here</a>.</h2>
</body></html>
302 redirect and google isn’t indexing site
My web.config
<authentication mode="Forms">
<forms loginUrl="/" timeout="2880" />
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" …………………….
</providers>
</membership>
<anonymousIdentification enabled="true" />
<profile>
<properties>
………………….
</properties>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" ………………………………………………….
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear />
<add connectionStringName ……………………………………………………..
</providers>
</roleManager>
<customErrors mode="RemoteOnly" defaultRedirect="/Products/Trouble">
<error statusCode="404" redirect="/Products/Confused" />
</customErrors>
What I’m doing wrong? Help me.