Polylang with RankMath, using different domains for each language

#890780
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    We apologize for the issue you are facing with the ERR_TOO_MANY_REDIRECTS error when trying to set up different domains for each language using Polylang and Rank Math.

    This error typically occurs due to misconfigurations in the redirection settings or conflicts between the plugins. Here are a few steps you can take to troubleshoot and potentially resolve this issue:

    1. Check Domain Mapping: Ensure that your second domain (mydomain.com) is correctly mapped to the second language in Polylang settings. You can do this by going to Languages > Settings in your WordPress dashboard and verifying the domain settings for each language.

    2. Permalink Settings: Sometimes, simply re-saving your permalink settings can help resolve redirection issues. Go to Settings > Permalinks and click on Save Changes without making any changes.

    3. Clear Cache: If you are using any caching plugins or server-side caching, clear the cache to ensure that old redirects are not being served.

    4. Check .htaccess File: If you have custom rules in your .htaccess file, they might be causing the redirect loop. Review your .htaccess file for any conflicting rules.

    5. Disable Other Plugins: Temporarily disable other plugins to see if there is a conflict causing the redirect issue. If the problem resolves, enable them one by one to identify the conflicting plugin.

    6. Review Rank Math Settings: Ensure that Rank Math’s redirection settings are configured correctly. Check if there are any active redirects that might be causing the loop.

    If you’ve tried these steps and are still experiencing issues, we recommend replying to this ticket so a human agent from the Rank Math Support team can assist you further with your specific configuration.

    Thank you for raising this concern, and we hope to help you resolve it soon!

    Hello,

    We didn’t use any redirect function in this code. Can you please confirm if the redirection loop error is occurring after applying the filter code? You can also share your website URL with us so that we can check this further for you.

    However, as you’re using different domains for your languages, they will be counted as different websites. In case, you’re using a multisite setup, please note that the correct way to use our plugin on a multisite setup is to install this on the network but only activate it on specific subsites.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    I’m sorry for the double posting, I could not find this post when I looked for it and thought it didn’t went through.

    The idea is not to have a multisite installation, but have the same installation serve both languages.

    Instead of:
    First language: https://mydomain.pt/sobre/
    Second language: https://mydomain.pt/en/about/

    I would like this:
    First language: https://mydomain.pt/sobre/
    Second language: https://mydomain.com/about/

    (“sobre” is the portuguese version of the “about” english version)

    Hello,

    According to Polylang, it is possible to use a different domain per language: https://polylang.pro/doc/url-modifications/#subdomains-name-and-domains

    You should get in contact with Polylang so they can suggest a fix for you. It is also possible that they have a fix already.

    Let us know how it goes.

    Thank you

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Polylang with RankMath, using different domains for each language’ is closed to new replies.