We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28150
    • 155 Posts
    I feel like I have asked this question before.

    I have a section of my website that uses mod_rewrite for another program. Unfortunately, every time I access the programs folder, it gives me a MODx page not found error. Is there anyway of forcing MODx to not watch for pages or folders in the site?

    Am I making any sense?
    • Quote from: SpeedStreet at Jul 01, 2005, 03:42 PM

      I feel like I have asked this question before.

      I have a section of my website that uses mod_rewrite for another program. Unfortunately, every time I access the programs folder, it gives me a MODx page not found error. Is there anyway of forcing MODx to not watch for pages or folders in the site?

      Am I making any sense?

      Would this be WordPress by any chance? I had this problem with WordPress’ permalink feature, which automatically writes to the .htaccess file in your WordPress root - this was problematic with my MODx rewrite rules and I solved it by merging them into my core .htaccess file with the MODx rewrites. Otherwise, I went into infinite loops, got too many redirections errors, and plenty of 404’s sending me to the 404 page, but without my stylesheet.

      If it’s not WordPress, feel free to post your subfolder’s rewrite rules and I might be able to suggest a way to merge them to avoid the conflicts.
        • 33496
        • 19 Posts
        I have MODx and Wordpress running on a personal site that I made for my girlfriend. ( http://jessica.snugg.net )

        I added a rewrite rule in the MODx .htaccess file, so that it does not try to rewrite the /blogg address
        RewriteCond %{REQUEST_URI} !^/blogg(.*)$
        RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]


        Then in the Wordpress folder I just changed the RewriteBase.
        RewriteBase /blogg/
          Johnny Chadda
          http://johnny.chadda.se
          "This is a UNIX virus. Please remove all your files and copy this message to friends."
        • Excellent solution zeth -- why didn’t I think of that one huh
            • 28150
            • 155 Posts
            Quote from: zeth at Jul 01, 2005, 05:51 PM

            I have MODx and Wordpress running on a personal site that I made for my girlfriend. ( http://jessica.snugg.net )

            I added a rewrite rule in the MODx .htaccess file, so that it does not try to rewrite the /blogg address
            RewriteCond %{REQUEST_URI} !^/blogg(.*)$
            RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]


            Then in the Wordpress folder I just changed the RewriteBase.
            RewriteBase /blogg/


            This fixed it.

            It was actually vBulletin’s archive feature. It’s all working now.