I have selection like:
<select name='lng' class='language-select'>
<option value='en-US'>English</option>
<option value='fr-FR'>French</option>
<option value='de-DE'>Spanish</option>
</select>
Currenty it is detected language with link like:
<a href="http://www.example.com/?DefineLang=fr-FR">French</a>
It will be retrieved variable using GET method but search engines will detect URL like
http://www.example.com/index.php?DefineLang=fr-FR
This is not search engine friendly.
language-select variable should be detect as
en-GB, fr-FR.
Example: $(document).ready(function()
{
$('select.language-select').on('change', function(evt)
{
}
);
}
);
How to do it in the correct way using languages as select option and also as link:
<a href="http://www.example.com/de-DE/heim>Deutsch</a>
[edited by: bill at 10:10 pm (utc) on May 29, 2016]
[edit reason] Use example.com instead [/edit]