开发者

Wicket SEO: removing "?wicket:interface=..." from AjaxFallbackLinks

开发者 https://www.devze.com 2023-03-30 02:27 出处:网络
I use Wicket\'s AjaxFallbackLink in a number of places. This works fine for users, but it\'s giving us some SEO headaches.

I use Wicket's AjaxFallbackLink in a number of places. This works fine for users, but it's giving us some SEO headaches.

When Google crawls one of our pages, it might be hours or days before they return and try crawling the AjaxFallbackLinks on that page. Of course since the links look like this:

http://example.com/?wicket:interface=:1869:mediaPanel:permissionsLink::IBehaviorListener:0:2

... the session is no longer valid by the time the crawler returns. This results in a ton of 404 errors on our site, which presumably harms our SEO.

My question: how can I make the Ajax links "stable" (like a BookmarkablePageLink) for s开发者_如何学运维earch engines, but still retain the Ajax behavior for interactive users?


You can tell Google to ignore certain URL parameters by using the URL Parameter options in Google Webmaster Tools. As of July 2011, you can even tell Google what to do in the case where changing the URL parameters has an effect on the page content (e.g. paging or sorting).

To access the feature, log into your Google webmaster tools account, click on the site you want to configure, and then choose Site configuration > URL parameters. You’ll see a list of parameters Google has found on the site, along with the number of URLs Google is “monitoring” that contain this parameter.

The default behavior is “Let Googlebot decide”. This results in Google figuring out duplicates and clustering them.

  • http://searchengineland.com/google-adds-url-parameter-options-to-google-webmaster-tools-86769

The question for you is whether the content of the page does change when you ignore the wicket:interface params. If it does, maybe you need to explore moving to a stateless Ajax fallback, such as the one described here:

  • https://github.com/jolira/wicket-stateless
0

精彩评论

暂无评论...
验证码 换一张
取 消