0

I currently have a multilanguage PHP site on which everything works fine. However, the "file name" does not change when "switching the language."

The URLs are like this:
www.site.com/br/article.pt.php
www.site.com/en/article.en.php

I want them to be:
www.site.com/br/meuartigo.pt.php
www.site.com/en/article.en.php

How can I do this? I could just do 301 redirects from

www.site.com/br/article.pt.php

to

www.site.com/br/meuartigo.pt.php

but I don't think that's the best way.

Pops
  • 30,199
  • 37
  • 136
  • 151
bossaxe
  • 1
  • 1
  • Going so far as to change the filenames is a bit overkill to be honest. Even large scale multi-lingual sites like twitter don't change the url paths. – onteria_ May 17 '11 at 00:40

1 Answers1

0

Your goal should be

www.site.com/br/meuartigo
www.site.com/en/article

That's the common format for 'SEO friendly urls'.

You can get a way to do it in the answer to this question: Simulate file structure with PHP

Community
  • 1
  • 1
morgar
  • 2,339
  • 17
  • 16