We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6998
    • 25 Posts
    Hi,
    I have Friendly URls, alias paths, and htaccess Options -Indexes.

    I’ve got a separate website that I’ve uploaded to my server outside of MODx.
    Let’s say it’s at http://www.mysite.com/sites/thisone/index.php

    When I reference that link from my MODx site, I get my 404 Error...
    It’s not duplicating any names from my site inside MODx (there is no /sites or /thisone). Also, it doesn’t help to use home.php instead of index.php.


    I’m not sure how to fix this.
    Can anyone help?
      • 3749
      • 24,544 Posts
      I think you can either put an .htaccess file in the root of the other site turning the rewrite engine off (just copy the file from the /manager folder -- and rename it to .htaccess if necessary).

      Or, you can create weblinks to the files in the MODx Manager - that will put them into any Wayfinder menus you have.
        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
        • 6998
        • 25 Posts
        er... multiple .htaccess files? Is that safe/a good idea?

        Also, a weblink pointing to the same site still gives the 404 error. Unless I’ve misunderstood you there.
          • 37550 ☆ A M B ☆
          • 711 Posts
          Within my rewrite rule I mark which folders should be excluded from the rule set by doing the following:

          RewriteRule ^/(?!(?:manager|v2|assets|projects)/)(.*)\.html(?:\?(.*))?$ /index.php?q=$1?2&$2: [NC,L,U]

          In the example above the folder v2 and projects is excluded from any html rewrite rules.

          Hope the above helps
            http://www.onesmarthost.co.uk
            UK MODX Hosting with love.