: Google crawling the site but refusing to index dynamic content I am trying to get Google to index an AJAX site (davidelifestyle.com). It's crawlable with JavaScript turned off and I have also
I am trying to get Google to index an AJAX site (davidelifestyle.com). It's crawlable with JavaScript turned off and I have also recently implemented _escaped_content_ snapshot mechanism but all that's indexed is a home page and PDF files that are not directly available from the home page. Also when I use Fetch as Google in Webmaster Tools, it downloads the dynamic page but does not index it ("Submit to Index" just reloads the page).
Any ideas what might be wrong?
Edit: Today Index Status in Webmaster Tools showed: Total indexed: 0, Not selected: 178. According to documentation, pages are "not selected" because they are regarded duplicates.
More posts by @Welton855
2 Comments
Sorted by latest first Latest Oldest Best
Your issue stems from your script: <script type="text/javascript" src="/js/js.js"></script>
function loadPage(uri) {
....
$.post(
uri,
//"/index2.php?view="+uri.replace(/^//,''),
{bodyOnly:true},
function (html) {
pageChanged=true;
if (uri!="") {
window.location="/#!"+uri; //<-- url rewrite here
lastHash=location.hash;
}
$("#wrapper").replaceWith(html);
onPageLoad();
if (uri!="/interiors/dla-prasy" || musicOff) {
replaceLinks();
}
if (uri=="/interiors/o-nas") {
if (window.location.href.match('davidelifestyle.com')) {
changeImageDescription("Esther Verheij - owner");
} else {
changeImageDescription("Esther Verheij - właścicielka");
}
}
$('link[rel=canonical]').attr("href",uri==""?"/":"/#!"+uri);
}
);
}
I really don't see what purpose the javascript url rewrite to prepend /!#/ serves, but if google can see your content at both /fashion and /!#/fashion then its going to consider it duplicate. Also you should avoid javascript url redirects whenever possible as that can be a problem with google since many spammer/malware sites use js redirects
One of the issues I see on your site is that on the homepage links look like href="/fashion". They must be href="/#!/fashion" in order for google to crawl through it properly. Google couldn't get from the homepage to any of the pages listed in sitemap.xml.
Also, on this page: davidelifestyle.com/?_escaped_fragment_=/fashion some of links look like this
<a href="//#!fashion/szyte-na-miare">
which is obviously wrong — should be /#!/fashion/szyte-na-miare
Also, make sure you submitted your sitemap.
Other than that, everything looks correct.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.