xfra35 / f3-multilang

Create multilingual apps with this localization plugin for the PHP Fat-Free Framework
GNU General Public License v3.0
48 stars 13 forks source link

Option for turn off rewriting in primary language #5

Closed mike1701 closed 9 years ago

mike1701 commented 9 years ago

Wish to have this option you have described in the google-group under https://groups.google.com/d/msg/f3-framework/NAhOB6rL6sw/4YpQ4OPT900J

It would be great.

Thanks

xfra35 commented 9 years ago

Yep that's on my list. Hopefully I'll find time for it next week. Cheers

xfra35 commented 9 years ago

Hi @mike1701, I've added a migration mode to the plugin, which automatically redirects old URIs to the new primary language.

I finally favored a redirection as just turning off rewriting raises some other issues (in particular the issue of detecting the language on a non-prefixed URI, be it a global URI or an old URI).

mike1701 commented 9 years ago

Thanks for this - it works so far, but i have wish a rendering without 301-redirect to the url with language-code. So Searchengines indexing urls without language-iso-code for the primary language and the menu-url-links for primary language are without iso-code. Is there any chance to realize this in any extended migration-mode ?