Support » Plugin: MultilingualPress » Redirect 301 301 issue

  • Resolved nisso92

    (@nisso92)


    Hi,

    I am having an issue with my language sites.

    When I share a page such as https://www.americaeb5visa.com/es/ in Facebook, the english version of the metadata: title, description etc. is coming up.

    The reason seems to be that redirections are in affect.
    When you check this page in http://redirectcheck.com
    This is what I am getting:

    Results:
    americaeb5visa.com/es

    HTTP/1.1 301 Moved Permanently
    Date: Thu, 15 Nov 2018 21:31:08 GMT
    Server: Apache
    Location: https://americaeb5visa.com/es
    Content-Length: 237
    Content-Type: text/html; charset=iso-8859-1

    https://americaeb5visa.com/es

    HTTP/1.1 302 Moved Temporarily
    Date: Thu, 15 Nov 2018 21:31:09 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.36
    Location: https://www.americaeb5visa.com/
    Vary: User-Agent
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8

    https://www.americaeb5visa.com/

    HTTP/1.1 200 OK
    Date: Thu, 15 Nov 2018 21:31:11 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.36
    Link: ; rel=”https://api.w.org/”, ; rel=shortlink
    Vary: Accept-Encoding,User-Agent
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8

    Could you please help me fixing this.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi nisso92,

    Regarding https://www.americaeb5visa.com/es/ can you check which language is setup in MultiligualPress tab for this site? currently if you inspect the page code, you´ll see en-US which is not correct for a Spanish site:

    <!DOCTYPE html>
    <html lang="en-US" ...

    To do so go to My Sites / Network Admin / Sites / <your Spanish site> / MultilingualPress tab, which value do you have in Language selector? if is not an Spanish one, try to assign a Spanish laguage to this site. Try it and let us know.

    Thanks,
    Emili

    Hi Elimi,

    Thank you very much for your answer. I changed the settings; however, I am still having the same issue
    I am sharing the TR site information:

    <!DOCTYPE html>
    <html lang=”tr-TR” prefix=”og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#&#8221; class=”no-js”>
    <head>

    Do you have any suggestions?

    Plugin Author dinamiko

    (@dinamiko)

    Hi nisso92,

    Not sure if I follow you, I´m still seeing lang="en-US" in the Spanish site:
    https://www.americaeb5visa.com/es

    Can you explain the problem a bit more?

    Thanks,
    Emili

    Hi Emili,
    Thank you for your response. Can you please check it now.
    It is es-ES and still redirecting it to main site

    Plugin Author dinamiko

    (@dinamiko)

    Hi nisso92,

    I´ve just checked https://www.americaeb5visa.com/es/ open graph data and it looks correct to me, keep in mind that change on open graph may take some time to be applied:

    og:url	https://www.americaeb5visa.com/es/
    og:type	website
    og:title	America EB-5 Visa - Su pasaje a los Estados Unidos de América.
    og:locale	
    {
        "locale": "es_es"
    }
    og:image	https://www.americaeb5visa.com/wp-content/uploads/2017/03/LogoSquareBackgroundClean.png
    og:description	America EB-5 Visa - Su pasaje a los Estados Unidos de América. Una puerta abierta a america
    og:site_name	America EB-5 Visa - Su pasaje a los Estados Unidos de América.

    Regarding the redirection in MultilingualPress functionality, it is based on the visitor browser languages priority, so for testing redirection is better to test it in a real browser.

    Thanks,
    Emili

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect 301 301 issue’ is closed to new replies.