Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

302 redirect on default language #309

Closed
ghost opened this issue Nov 11, 2015 · 1 comment
Closed

302 redirect on default language #309

ghost opened this issue Nov 11, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 11, 2015

Hi!

I believe that I have found a bug.
The "qtranxf_init_language" method is performing a 302 redirect when I select the option: "Hide URL language information for default language.".

However, it would not be correct to add 301 as a parameter in wp_redirect?
Example: wp_redirect($target, 301) - line 81;

I say this for the sake of SEO.

http://example.com/default_lang/page.php ---> (302) http://example.com/page.php

Correct:

http://example.com/default_lang/page.php ---> (301) http://example.com/page.php

Can you could understand?

@johnclause
Copy link
Member

Is this about one of these:

https://qtranslatexteam.wordpress.com/2015/02/26/browser-redirection-based-on-language/

#306

The latter is a problem if you use caching plugin, the first one is "by design". Which one is your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant