We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38372
    • 19 Posts
    Hello,
    I work with MODX REVO 2.2.6 on MAMP, and i have a problem with URL rewriting but just with the page container.
    I use the wayfinder package in order to create my navigation.
    When i'm on www.domain.com/page1/ and I click on page2, I have this : www.domain.com/page/page2.html, but page1 and page2 are in the same level. And when i'm on www.domain.com/page1/ , if a click on page1 again, I get this url : www.domain.com/page1/page1/ and i'm redirected on the index page because this url does not exist.
    If all of my pages aren't container, I haven't this problem. I have others sites with MODx on MAMP, and no problems with them.

    Someone has had this problem ?

    Thanks for your help, and sorry for my bad english.

    Guillaume [ed. note: woolfer last edited this post 13 years, 9 months ago.]
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      You'll need to add this tag to your header:
      <base href="[[!++site_url]]"></base>

        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 38372
        • 19 Posts
        Thanks for your response ! It works ! I forgot this part of my site.