We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36592
    • 970 Posts
    Since .htaccess rewrites friendly urls like "index.php?q=...", so this line in the plugin
    $old_url = $modx->documentIdentifier;

    should be changed like
    $old_url = $_REQUEST['q'];


      • 16085
      • 203 Posts
      I never got this plugin to work either. So you really should check out Virtual Aliases instead!

      http://www.stanback.net/code/modx/virtual-aliases.html

      If you run SuPHP on the Apache Server make sure you check out my thread for the fix you need to add to the Virtual Aliases plugin first.

      http://modxcms.com/forums/index.php/topic,26235.0.html
        • 2396
        • 101 Posts
        I couldn’t get the Virtual Aliases plugin to work but this worked a treat with the mod posted above by tkfm. Fantastic!
          • 3647
          • 177 Posts
          This works well in certain circumstances, but have an issue that has stumped me now
          It works for static URL’s but not dynamic ones

          Old site format
          http://www.domain.com/Default.asp?page=27

          In the process of processing this ’Missing’ or the .htaccess file for Friendly URL’s strips off the ?page=27, so you can’t use it to pick up the redirection.

          Looking at what Missing sees it only gets the Default.asp, which isn’t much help.

          Have tried taking the QSA off the .htaccess file but that didn’t do the trick.

          Does anyone have any suggestions?