• Resolved klivie

    (@klivie)


    Client has reported a couple of issues with Redirects they are trying to add. I’ve had a bit of a test and believe i know why this is, but i am after a suggestion to get around the issue.

    We’re using WPML on a website to host 2 language versions of pages. This is handled via query string. E.g. ?lang=en-US is appended to pages go to a “US” version of the webpage.

    See our redirect rules below:

    Base language (working):
    /spectrum-hertfordshire-fingerprint-drug-test/ redirect to /news-resources/

    US Language (not working):
    /spectrum-hertfordshire-fingerprint-drug-test/?lang=en-US redirect to /news-resources/?lang=en-US

    Essentially our problem is with the US language redirect, when going to the target url (/spectrum-hertfordshire-fingerprint-drug-test/?lang=en-US), it’s actioning the base language redirect instead. E.g Redirecting the user to the wrong language page (going to /news-resources/ rather than /news-resources/?lang=en-US)

    I tried testing a change to the base language redirect rule by using a seperate url (/spectrum-hertfordshire-fingerprint-drug-test-bk/), but it seems the US language redirect still doesn’t work when going to the target url (/spectrum-hertfordshire-fingerprint-drug-test/?lang=en-US), but this time no redirect is done at all.

    It seems the plugin is ignoring the querystring part of the urls entirely, and so the redirect is going to the wrong destination / being ignored entirely.

    Is there anyway we can fix this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support AR Rasel

    (@arrasel403)

    Hi @klivie,

    Hope you are doing well.
    Sorry for the inconvenience caused. It seems really very strange. We need to investigate the issue more deeply. Please create a support ticket here.

    Our support team will check and get back to you as soon as possible.

    Thanks!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @klivie,

    Hope you are doing well. I have checked once your above-mentioned issue. And got that it is related to the parameter forwarding. And sorry to inform you that, we don’t have a parameter forwarding option with the Simple 301 Redirects plugin.

    But we have another plugin named BetterLinks which will have all the features as the Simple 301 Redirect plugin and also have more advanced features. In the BetterLinks plugin, we have a parameter forwarding option as well. Check this screenshot.

    You can try once by using the BetterLinks plugin. Hope your issue will be fixed. You can simply migrate all links from Simple 301 Redirects to BetterLinks with one click. You can check this doc out.

    Hope this will help you. Let us know how it goes.

    Thanks!

    • This reply was modified 4 years, 3 months ago by AR Rasel.
    Plugin Support AR Rasel

    (@arrasel403)

    Hi @klivie,

    We haven’t heard back from you in a long time. So, I am assuming your issue has been resolved. I am closing this topic.

    Have a nice day!

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

The topic ‘Redirect problems WPML querystrings’ is closed to new replies.