We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 873
    • 3 Posts
    Hi, I’m a newbie in ModxCms, trying to transpose one of my web sites inside this CMS.

    I almost solved every problem I had with the exception of the following one :

    I want to keep part of the old static HTML as it was originaly in a folder.
    That’s because this part is FTP managed by a third part, and I don’t want
    them to change their habits !

    So I’d like that, for instance "www.mysite.com/mypage" goes to a ModxCms
    (I did it with friendly URLs), and in the contrary "www.mysite.com/theirpage" goes
    to the old "index.htm" page they have in their "theirpage" folder !

    Thanks for your help
      • 22303 MODX Staff
      • 10,725 Posts
      If the files exist, the rewrite rules for MODx will be ignored. Should just work.
        • 873
        • 3 Posts
        My trials gave the following results :

        a- I created the folder "theirpage" inside which I put the static HTML file "index.htm"
        b- When I try to reach "www.mysite.com/theirpage" with my browser, I have the Error 403 "Forbidden" message
        c- When I try to reach "www.mysite.com/theirpage/index.htm", I have a dummy page given by ModxCms

        What I’d like to do is to type "www.mysite.com/theirpage"
        and obtain "www.mysite.com/theirpage/index.htm" on the browser screen,
        just as it usually works in static web sites.

        A.
          • 19726
          • 239 Posts
          I think adding a .htaccess file that disables the rewrite engine in the "theirpage" folder would work
            • 7231
            • 4,205 Posts
            I think that when modx sees this "www.mysite.com/theirpage" it looks for a document with the alias of ’theirpage’. The way around this is to add a weblink with the alis "theirpage" and redirect to the absolute url "www.mysite.com/theirpage/index.html". What happens with "www.mysite.com/theirpage/"?
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 873
              • 3 Posts
              I did the .htaccess modification and it works now - thanks !
                • 12512
                • 42 Posts
                Quote from: Alcyon at Oct 09, 2008, 02:32 PM

                I want to keep part of the old static HTML as it was originaly in a folder.
                That’s because this part is FTP managed by a third part, and I don’t want
                them to change their habits !
                for your help

                I just posted a snippet which provides this functionality:

                http://www.modxcms.com/ShowStaticHtmlPages-1.1-2240.html