Forum Moderators: open
I'm a newbie here... so be patient, please!
I'm managing a "cookies enabled" web site, not loved by Google, under an italian tld (www.domainname.it). In order to be indexed I've built a small version of the website with a plain text description at the alternative url www.domainname.com. This small version contains a "window.location.href" javascript redirecting to the main site.
The website has been crawled three times by googlebot but never indexed. Is that depending on the javascript, and should I try a new version with a redirect based on an external .js file?
Or should I forget this approach, because Google bans every kind of doorway domain?
I did not find any answer reading faq e library.
Thank you
Nino
Welcome to WebmasterWorld.
I don't think it has much to do with how you've implemented you JS. It probably has more to do with you not having enough inbound links pointing to the new site.
If the site only exists for search engines then it becomes much harder to develop the type of inbound linking a site needs to get in and stay in Google's db.
A better approach would be to come up with a way to simply not give Google the cookie.
Be extremely careful at what you do with redirects and multiple domains: as you said, Google doesn't like doorway pages and duplicate sites.
About the cookie question, Googlebot (Google's spider) doesn't use cookies or sessions. The only solution I see to get your main site indexed is to make sure it can be navigated with both cookies and JavaScript disabled.