We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22674
    • 12 Posts
    Hello.. smiley

    I have a problem with htaccess.
    when I trying to change the .htaccess file in line rewriterule with this:

    RewriteRule ^news_articles(.*).babon index.php?q=11&news=$1 [L,QSA]
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

    I can’t go to manager page, it’s always redirect to home page,
    is there any one who can give me the solution of the problem...
    wink
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      It looks like you are trying to redirect 404 traffic to your home page instead of a 404 error page yes?

      If so just use the stock htaccess code and change the error page in the configuration.

      AMDbuilder
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 22674
        • 12 Posts
        I’m not realy understand..

        i need when the request url is "news_articles775.babon"
        the browser detect "index.php?id=11&news=775"

        is that possible to do?
        how to do?

        thank’s for the answer...
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Hello,

          Just to confirm you want some to visit domain.com/news_articles775.babon and have it redirect to domain.com/index.php?id=11&news=775?

          Are you using friendly urls by any chance?
          AMDbuilder
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting
            • 3749
            • 24,544 Posts
            If I’m understanding you (and I’m not sure I am), your rewrite rule is keeping you from getting to the Manager.

            Try renaming the ht.access file in the Manager folder to .htaccess. That will turn the rewrite engine off for the Manager.

              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