Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Changing lang in a url should redirect 404 or 301 #910

Closed
riquito opened this Issue · 5 comments

6 participants

@riquito

Say I have a multilanguage page, with urls
/en/hello/world
/it/ciao/mondo

Both urls point to same page, different translations.

At present, if you write
/it/hello/world
the italian page is presented

For SEO purposes, we shouldn't have two urls serving the same exact content.
The proper way to handle it would be to either redirect to the completely translated url with a 301
/it/hello/world => 301 => /it/ciao/mondo
or let it fail with a 404
/it/hello/world => 404

@FrankBie

In order to theme the site properly,
meaning having controll over the site structure and link flow,
/it/hello/world is not a url that should be reachable, so I would 404 it.
As only 2 pages exist
/en/hello/world and
/it/ciao/mondo

just my 2 cents
Frank

@ojii
Collaborator

I'm +1 on 301, simply because people copy/paste links all the time (and sometimes change the language prefix). Also, non-prefixed URLs should 301 too. Like that one content (in a language) only has one URL attached to it, but it makes it still easy for users to get there.

@evildmp
Owner

301 sounds sensible to me.

@GMLudo

+1 for 301.

@digi604
Collaborator

this has been resolved in the multilingual middleware removal branch merge.

@digi604 digi604 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.