Tiggerito

msg:4418726 | 11:39 am on Feb 17, 2012 (gmt 0) |
I would go with option a. Mainly because it makes sure your domain is a valid page in it's own right and there is no duplication of your French content. This stuff will also help you tell search engines what you are up to: [support.google.com...] [support.google.com...]
|
g1smd

msg:4418731 | 11:59 am on Feb 17, 2012 (gmt 0) |
It's a good idea to include the language identifier in the URL. Faced with a multi-language site where the information I wanted was in Armenian, right from the Google search I made, substituting /en/ for /hy/ brought me to a quaintly worded but quite understandable version of the data I was looking for.
|
Simon Giddings

msg:4418745 | 12:55 pm on Feb 17, 2012 (gmt 0) |
Thanks to both of you for your replies. However, it would seem that you are not in agreement. Tiggerito is saying to not use systematically the language identifier for the domain entry page. g1smd is saying to use the language identifier all the time. So which is the "correct" way of doing this ?
|
phranque

msg:4418785 | 2:50 pm on Feb 17, 2012 (gmt 0) |
it partly depends on whether you are targeting a "language" (french) vs geotargeting (france). i would usually prefer to specify languages in the hostname as subdomains. this makes it easier to host a subdomain in the targeted geography should that become necessary. it also makes it easier to have the same directory structure for all languages without the requirement to specify a default language. e.g. www.example.com/category/product vs en.example.com/category/product if you are using a gTLD make sure that you specify a url structure that allows you to geotarget in GWT as required. (i.e. subdomains or subdirectories of the document root directory) regarding usability, consider how you will address default and preferred language detection and provide for switching languages. this includes detecting the Accept-Language‎ HTTP Request header setting and perhaps the existence of a language cookie from a previous visit and redirecting to the appropriate url if necessary.
|
Simon Giddings

msg:4418855 | 4:56 pm on Feb 17, 2012 (gmt 0) |
Ok phranque, you really didn't want to make it any easier ! ;-) My site already handles the two languages via data stored in a cookie, with an on-page language selector. This is "simply" a language choice and not a geolocation choice, enabling non-french speakers to still be able to benefit from the content. Using a sub-domain approach would indeed ensure that the existing functionality of the site would be left untouched. However, on a LAMP hoster with CPanel, I am unsure as to how to set this up without duplicating the physical file data. Any advice ?
|
phranque

msg:4419030 | 2:08 am on Feb 18, 2012 (gmt 0) |
this is the CPanel doc for setting up Subdomains: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/SubDomains [docs.cpanel.net] if you are hosting all the content in the same document root, you can do any necessary redirects and/or internal rewrites for all subdomains in the .htaccess file there using mod_rewrite. oh and i didn't notice earlier so welcome to WebmasterWorld, Simon_Giddings!
|
Simon Giddings

msg:4419078 | 8:32 am on Feb 18, 2012 (gmt 0) |
Sorry phranque, still a bit confused. Does this mean that I should create the subdomain, pointing it towards the same doc root as the main domain ? I think I can see what I would need to do within the .htaccess file.
|
phranque

msg:4419515 | 11:35 am on Feb 20, 2012 (gmt 0) |
yes that's what i mean, assuming "you are hosting all the content (both languages) in the same document root"
|
|