Hi DPers, I'm developing a website for a UK client. Since I'm using Ajax, each and every page is loaded via Ajax. http://www.advancebaggage.com/ - this is the link. This site is working fine for me in all browsers. Google has indexed index.jsp page correctly, But all other pages are indexed partially (Just original Ajax invoking part). How can i fix this and tell Google to index pages as we see it. Thanks in advice.
Create a non-javascript version of the page for people with incompatible browsers and search engine bots.
Hi nvidura, Well to make your other webpages to get noticed to the spiders, use Non-Java Scripts Links and No Pop-ups should be hidden under your active webpages. Just compare your home page with other pages those are not getteing indexed. Search bots likes normal and regular hyperlinks and Java Script links and Pop-ups are mainly invisible to them. So try this out. I feel this suggestion can fix your problem
You mean i should not rely on JavaScript links? Its' pretty odd to learn that Google spiders can't follow JavaScript links. This concept is pretty new to me. Anyway thanks...
Don't do it just for google, do it for people who don't have compatible browsers. EG: <script type="text/javascript"> document.write('<a href="javascript:AJAX_CALL" title="PAGE_TITLE">ANCHOR_TEXT</a>'); </script> <noscript> <a href="NEW_PAGE.html" title="PAGE_TITLE">ANCHOR_TEXT</a> </noscript> Might need you to recode your back end a bit.
Well then i have another problem, JavaScript version is for visitors, and non JavaScript version is for Spiders. So after some times Google will index Non JavaScript version and direct visitors to Non JavaScript version. Thanks, but getting rid of AJAX is not an option for me. Because it reduces reasonable amount of page loading time...
Hi nvidura, still now, search engines can’t see Ajax delivered content or navigation as they are unable to run the Javascript code necessary to generate the html content. I do agree that is requires less time to load a page but if you really want the bots to spider and index your webpage coded with Ajax, then i would suggest you to wait. Unless the search engines changes their algorithms, you have to feed the bots with html links and real links. Another option is you can code your webpages content with CSS. It's good in terms of quick indexing by bots and it also reduces reasonable amount of page loading time (requires less bandwith and is compatible for all browsers). Hope this helps Thanks!