Title: Double language in address: https://blog.com/en/pt-br
Last modified: August 22, 2016

---

# Double language in address: https://blog.com/en/pt-br

 *  Resolved [viniciusferrao](https://wordpress.org/support/users/viniciusferrao/)
 * (@viniciusferrao)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/)
 * Hello guys,
 * I’m trying to build a blog with qtranslate-X but things aren’t good.
 * Here’s the blog address:
    [https://ferrao.eti.br](https://ferrao.eti.br)
 * As you can see, when someone enters in the blog it redirects automatically to/
   en. Which should not be done, since the default language is pt-br.
 * The major problem happens when we click in “Portuguese Brasilian” link or just
   try to go directly to [https://ferrao.eti.br/pt-br](https://ferrao.eti.br/pt-br)
 * It redirects to /en/pt-br!
 * I’m seeking for help on how to debug the issue. I don’t know if nginx is the 
   one to blame here, but I don’t think so.
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5902913)
 * I am not sure what is going on here. There has been some changes in the code,
   could you please try the latest version from [GitHub](https://github.com/qTranslate-Team/qtranslate-x),
   which you can download with ‘Download ZIP’ button on GitHub page or press [here](https://github.com/qTranslate-Team/qtranslate-x/archive/master.zip)
   for the sake of convenience?
 *  Thread Starter [viniciusferrao](https://wordpress.org/support/users/viniciusferrao/)
 * (@viniciusferrao)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5902936)
 * Upgraded to the Github version and the problem persisted.
 * I can’t blame qtranslate-X for that. But I’m not sure what’s the necessary steps
   to isolate the problem.
 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903024)
 * [@viniciusferrao](https://wordpress.org/support/users/viniciusferrao/),
 * the problem is still there?
 * try the pre-release of versie 3.3 [download here](https://github.com/qTranslate-Team/qtranslate-x/archive/master.zip)
 *  Thread Starter [viniciusferrao](https://wordpress.org/support/users/viniciusferrao/)
 * (@viniciusferrao)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903025)
 * Hello Gunu.
 * Unfortunately the problem still persists. As I said, I can’t blame qTranslate-
   X for this. I don’t know if nginx is the one to blame. That’s why I need help
   debugging this issue.
 *  Thread Starter [viniciusferrao](https://wordpress.org/support/users/viniciusferrao/)
 * (@viniciusferrao)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903026)
 * Gunu, I’ve installed a new VM from the ground and I can confirm that the bug 
   persists. This is definitely an rewrite problem.
 * I’ve tried using Apache 2.4 instead, things went better, still broken, but appeared
   to be an Apache problem.
 * There are any success stories of qTranslate-X with nginx?
 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903027)
 * [@viniciusferrao](https://wordpress.org/support/users/viniciusferrao/),
 * [this post](https://wordpress.org/support/topic/disable-automatic-link-rewriting-for-downloads-not-working?replies=31)
   deals with a different problem, but this user (extremecarver) also appears to
   use nginx.
    Maybe this helps you further.
 *  [vbkun](https://wordpress.org/support/users/vbkun/)
 * (@vbkun)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903030)
 * Have you tried using Portuguese instead Portuguese Brazil?
 * I’m having loads of problems with qtranslate-x, I managed to get some infinite
   loop causing error in my server where it redirected to pt-br/pt-br/pt-br/pt-br/
   pt-br/pt-br/pt-br….
 * I also at some point managed to get the same problem as you.
 * In the end just seems qtranslate-X can’t deal with 5 chars language codes… just
   2 chars…
 * Therefore when you try to open [https://ferrao.eti.br/pt-br](https://ferrao.eti.br/pt-br),
   pt-br is not recognized as language, but as page. So you get redirected to the
   pt-br page in english :).
 * (if you get to solve that you may face the permanent redirect problem, which 
   I couldn’t here either)
 * ps: I believe you guys were in the wrong track as this does not relate Nginx 
   at all, I’m actually on Apache.
 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903031)
 * [@vbkun](https://wordpress.org/support/users/vbkun/) gave perfect explanation–
   thanks a lot, and I added sticky post [https://wordpress.org/support/topic/pt-br-language-code-is-not-supported](https://wordpress.org/support/topic/pt-br-language-code-is-not-supported),
   which I believe closes this topic?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Double language in address: https://blog.com/en/pt-br’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * 8 replies
 * 4 participants
 * Last reply from: [John Clause](https://wordpress.org/support/users/johnclause/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/double-language-in-address-httpsblogcomenpt-br/#post-5903031)
 * Status: resolved