5

I have a good SE ranked webpage written in dutch(=nl) and I have just upgraded my site to be in french too. So I've created subdirectories for NL en FR, but my root/index is now exactly the same as my /root/nl/index page... So I 302 redirect from my root/index to the correct subdir based on browserlanguage, is this the good way (thinking about SEO and knowing my root/index has a good rating.. But my biggest question, how to handle the hreflang, canonical, maybe even x-default,...

Here is my code:

MY FILENAME: root/index.html (= https://mjazz.be/)

<html lang="nl-be">
<head>
<link rel="canonical" href="https://mjazz.be/" /> 
<link rel="alternate" hreflang="nl-BE" href="https://mjazz.be/nl/" /> 
<link rel="alternate" hreflang="fr-BE" href="https://mjazz.be/fr/" /> 
----------------------------------------------------------------------
MY FILENAME: root/nl/index.html (= https://mjazz.be/nl/)

<html lang="nl-be">
<head>
<link rel="canonical" href="https://mjazz.be/" /> 
<link rel="alternate" hreflang="nl-BE" href="https://mjazz.be/nl/" />
<link rel="alternate" hreflang="fr-BE" href="https://mjazz.be/fr/" />

Is this correct? Should it be different? Please help me? Thanks in advance!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.