We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21419
    • 84 Posts
    I hate posting this, but I’ve read through all of the 301 redirect topics, trying each solution and can’t seem to find the right combination to make this work.

    I just switched a site from CMSMS to ModX. The old url was index.php?page=events. I’m using friendly urls in ModX so the new page is http://www.hhiconcours.com/events.html

    As I mentioned, I’ve tried everything I’ve seen here and on other sites. I think there’s something about the old URL that requires a specific type of Rewrite. Right now, everything goes to the home page with the old url.

    Any of you htaccess geniuses have any ideas? I’m currently using this to no effect:

    RewriteRule ^index\.php?page=events$ http://www.hhiconcours.com/events.html [L,NC,R=301]
    
      • 3749
      • 24,544 Posts
      Look at the MODx ht.access file in the site root. I think what you want is in there.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 7327
        • 195 Posts
        You still alive? hehe!

        Was trying to look for the answer to this too. Here's what I found so far, try using this in your htaccess:

        RewriteRule ^http://www.hhiconcours.com/index\.php?page=events$ http://www.hhiconcours.com/events.html [R=301,L]

        I think you're just missing the host name, haven't tried this specific url, but a specific url link works for me.