We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26951
    • 41 Posts
    I am trying to use the URL identifier to pull in the exact pages the SE bots search, however I can’t find the right info on how to modify the string


    <?php
    $url = $modx->makeUrl($modx->documentIdentifier,"", "", "full"); <--- THIS ONE
    if(strstr($_SERVER[’HTTP_USER_AGENT’],’Google’))
    { etc etc

    Basically I have modded the site to have another query string after the SE friendly URL

    ie

    /search-results-here-brother.html?thisid=1121323

    I want to display the whole URL including id string.

    Any ideas?

    Thanks
      • 26951
      • 41 Posts
      OK figured it out - thanks for the stock tip spam anyway.

      Just use the SV:

      $_SERVER[’QUERY_STRING’]