We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36666
    • 19 Posts
    Revo 2.3.5-pl (advanced)
    Apache 2.4.7
    PHP 5.5.9
    MySQL 5.5.44


    After disabling FURLs, in both System Settings and .htaccess, all URLs with multiple variables are generated with a second query string separator (?) immediately after the first variable. IE:
    The page source contains
    <a href="index.php?id=77?region=us&period=7days&minmag=3"></a>
    After clicking the link the browser address bar displays
    index.php?id=77?region=us&period=7days&minmag=3
    and the result is HTTP error 404, page not found.

    Manually changing the second query string separator to '&' in the browser address bar subsequently displays the correct page.

    How can I correct this behavior? [ed. note: cp@pcs last edited this post 11 years ago.]
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can't. Each and every hard-coded URL has to be scanned and edited.

      How are the URLs generated? Are they hard-coded, or were MODX tags used?

      [[~77? &region=`us` &period=`7days` &minmag=`3`]]


      https://rtfm.modx.com/revolution/2.x/making-sites-with-modx/structuring-your-site/resources#Resources-URLParametersforResourceTags
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36666
        • 19 Posts
        After reading the link provided above I discovered that I have been using incorrect syntax for these links.
        Converting the incorrect
        [[~000]]?var1=1&var2=2

        to
        [[~000 &var1=`1` &var2=`2`]]

        resolved this issue.

        Thanks Susan, much appreciated. [ed. note: cp@pcs last edited this post 11 years ago.]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Don't forget the ? immediately following the resource ID, just like any other MODX tag's properties.
          [[~000? &var1=`1` &var2=`2`]]
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org