You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robin Mannering <ro...@mtndesigns.co.uk> on 2009/08/12 08:37:12 UTC
Internationalization and SEO
Hello,
I have a question relating to serving international content that I hope
someone can help with.
It is kind of leaning towards an SEO question, but it does relate to
Struts in terms of how I can use Struts 2 to control page direction
because of language selection.
In terms of SEO, I am guessing that serving the content for three
languages on one page, would be bad for SEO.
For example, serving English, French and German versions for a page all
on the same URL:
www.mydomain.com/myPage.htm
This is possible of course creating and using the corresponding language
resource bundles. Struts 2 would serve up the correct content based on
the browser locale setting.
However, looking around Googles knowledgebase, it would be better to have:
www.mydomain.com/en/myPage.htm
www.mydomain.com/fr/myPage.htm
www.mydomain.com/de/myPage.htm
How can I configure struts to work in this way, ie redirect a user to a
subdirectory tree based on the language locale set in their browser.
Thanks for any thoughts.
Robin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Internationalization and SEO
Posted by Zoran Avtarovski <zo...@sparecreative.com>.
Have you seen URLRewrite Filter, it will enable you to set request
parameters based on URL. For example you can have
www.mydomain.com/en/myPage.htm remap to
www.mydomain.com/myPage.htm?locale=en and likewise for the others.
It¹s one of the handiest tools for web.
Z.
>
> Hello,
>
> I have a question relating to serving international content that I hope
> someone can help with.
>
> It is kind of leaning towards an SEO question, but it does relate to
> Struts in terms of how I can use Struts 2 to control page direction
> because of language selection.
>
> In terms of SEO, I am guessing that serving the content for three
> languages on one page, would be bad for SEO.
>
> For example, serving English, French and German versions for a page all
> on the same URL:
>
> www.mydomain.com/myPage.htm
>
> This is possible of course creating and using the corresponding language
> resource bundles. Struts 2 would serve up the correct content based on
> the browser locale setting.
>
> However, looking around Googles knowledgebase, it would be better to have:
>
> www.mydomain.com/en/myPage.htm
> www.mydomain.com/fr/myPage.htm
> www.mydomain.com/de/myPage.htm
>
> How can I configure struts to work in this way, ie redirect a user to a
> subdirectory tree based on the language locale set in their browser.
>
> Thanks for any thoughts.
> Robin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>