Bu SEO soru:
Ben seçim ziyaretçinin kültürüne göre bir sayfanın başlığı görüntülemek ettik.
Bir ingilizce ise:
<title>
<?php if ($sf_user->getCulture() == 'en') : ?>
Hello, this is an english website
<?php else ?>
Bonjour, ceci est un site français
<?php endif ?>
</title>
Botlar / örümcekler bir kültüre sahiptir mı?
Does that means that on Google uk my website page will be : "Hello, this is...." and on Google france this will be "Bonjour...."
Teşekkür ederim
EDIT: Anyone visiting my website will see it in English, except for France, Belgium, and maybe Canada. It can be done because getCulture() returns browser accepted & preferred languages
EDIT2:
When a user opens my website (based on HTTP_ACCEPT_LANGUAGE
) :
<?php $culture = $request->getPreferredCulture(array('en', 'fr'));
$this->getUser()->setCulture($culture);
$this->getUser()->isFirstRequest(false); ?>