Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 01:29
    Muhammad Nauman Shaukat
    0

    Redirect URLs with querystring

    Hi,

    I've been trying to add a redirect rule where my site's old URL along with the trailing querystring gets redirected to my new URL, but no luck so far. Following is the example of what I want to achieve

    old url: mysite.com/thinking/{query-string}

    new url: mysite.com/thoughts/{query-string}

    Checking the option for Querystring on Redirect Manager behaves strangely like it will allow the old URL mysite.com/thinking?{query-string} to be redirected to mysite.com/thoughts/?{query-string}

    Its pretty strange, so can someone help me here and correct what I've been doing wrong.

    Regards,

    Nauman

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:03
    Richard Soeteman
    0

    The querystring option in redirect settings is the one you should use since that will redirect to a new page based on the querystring parameter.

    Hope this helps,

    Richard

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 06:10
    Muhammad Nauman Shaukat
    0

    Hi Richard,

    Thanks for the prompt response. I've tried the querystring option as well but its not working, kindly have a look at the attached image of what I've been trying.enter image description here

    Regards,

    Nauman

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:12
    Richard Soeteman
    0

    You should add a real querystring like ?pageid=22

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 06:16
    Muhammad Nauman Shaukat
    0

    Oh well, what I wanted to achieve was a generic redirect where

    /our-thinking/{Query-String}

    gets redirected to

    /Insights/{Query-String}

    Where {Query-String} can be any value, so that I don't have to add 100+ URLs redirect.

    Is this possible?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:24
    Richard Soeteman
    0

    Do you just want to forward the querystring? Then you need to set "Forward querystring" Option in the general configuration settings of seochecker

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 06:28
    Muhammad Nauman Shaukat
    0

    Well I've that option checked as well in configuration, but still its redirecting to error page for example

    http://folio1.com.au/our-thinking/what-is-software-as-a-service-saas

    should get redirected to

    http://folio1.com.au/insights/what-is-software-as-a-service-saas

    I've removed all other redirect rules other than the basic one that is following

    enter image description here

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:33
    Richard Soeteman
    0

    But is that what you are after? It should forward the querystring (real querystring ) not what you have specified since that is just a string

    Best,

    Richard

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 06:43
    Muhammad Nauman Shaukat
    0

    Yes Richard, I'm after what you just mentioned. In other words my old website had child nodes under

    mysite.com/our-thinking/

    now in new website those are under

    mysite.com/insights/

    so all I want is to have anything from first URL be pointed to second with the real querystring attached

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:47
    Richard Soeteman
    0

    Then just redirect our-thinking WITHOUT querystring parameter option to insights. When redirect is found and forward querystring is set it will redirect with the querystring.

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 06:54
    Muhammad Nauman Shaukat
    0

    Hi Richard,

    Its not working, one question though, does the module handles querystring as in MVC or just with "?"

    Because if its catering for "?" only then it's not working for me.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 14, 2016 @ 06:57
    Richard Soeteman
    0

    It forwards ?etc

  • Muhammad Nauman Shaukat 9 posts 79 karma points
    Sep 14, 2016 @ 07:00
    Muhammad Nauman Shaukat
    0

    Alright Richard,

    Thanks for your help, I think I need to write down my own URL rewrite rule for my scenario.

    Regards,

    Nauman

Please Sign in or register to post replies

Write your reply to:

Draft