Make GWT Crawlable (SEO)

I like my GWT application to be scanned by the Google bot. I found this article ( https://developers.google.com/webmasters/ajax-crawling/ ). It says that there should be a servlet filter that serves a different look for the Google bot. But how can this work? If I use, for example, a template of actions and places, than changes on the page are only on the client side and the servlet is not involved β†’ the servlet filter does not work here.

Can someone give me an explanation? Or is there another good tutorial designed for gwt how to do this?

+7
source share
2 answers

So here is the solution to the real problem:

I wanted my GWT (running on the Google App Engine) to be a Google scanned bot and follow this documentation: "https://developers.google.com/webmasters/ajax-crawling/". I tried to apply a servlet filter that filters every request in my application and checks for a special fragment in the escaped URL that was added by the Google bot and presents a special kind of bot with a headless browser.

But the servlet did not work for the MyApp.html file. I found out that all files are considered as static files and are not filter dependent. I had to exclude the ".html" files from these static files. I did this by adding the line "to static files in" appengine-web.xml ".

Hope this helps some people with the same problem save time :)

Thanks and best regards January

0
source

If you use Action & Places, your β€œpages” will have a bookmark URL (usually consisting of an HTML main page, # and some tokens separated by a! Or another character).

Thus, you can place links (applications) in your application to make it accessible. If the link contains the correct structure (one that has # and tokens), it will go to the right place.

Take a look at https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces

+1
source

All Articles