dimanche 28 juin 2015

Make indexable an ajax based webpage

I want to make indexable my ajax based website.

I have read this doc: http://ift.tt/PGKKpZ But I don't understand it at all.

I think I need to do it:

  1. Write this tag in a webpage, for example: www.myweb.com/mypage

    <meta name="fragment" content="!">
    
    
  2. I'm using UrlRewriteFilter for my Tomcat Server (http://ift.tt/L066wZ), so I think I could redirect the urls with the substring: "?_escaped_fragment_=" to a html snapshot (which I can build manually, writing my custom meta-description, title and content???)

    <rule>
       <from>^/mypage\?_escaped_fragment_=</from>
       <to type="forward">/snapshots/mypage.html</to>
    </rule>
    
    
  3. Write the URLs (without the escaped fragment) into the sitemap.xml

    ...
    <url>
    <loc>http://ift.tt/1ed3v19;
    ...
    </url>
    ...
    
    

Is it right? I need to do something more?

Aucun commentaire:

Enregistrer un commentaire