Mod rewrite problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YAP
    So Fucking Banned
    • Sep 2006
    • 177

    #1

    Mod rewrite problems

    Hello people,

    I'm having some issues with mod rewriting on my site.

    I started using mod rewrite on my urls a few weeks ago.
    Changed some lines in my .htaccess etc etc but after a few days my servers crashed everytime we had high traffic hours.

    Anyway, i think mod rewrite is important so i'm looking for some other ways to configure this. Configuring through .htaccess (which i did) looks like a bad idea for high traffic websites. I have heard that you can configure it directly in your apache configuration but i'm (kinda newbie) not really sure about that so i hope someone can help me with this...

    thanks a lot.
  • schneemann
    Confirmed User
    • Oct 2006
    • 749

    #2
    mod_rewrite isn't crashing your servers.

    Let me guess - you're rewriting dynamic URLs? The query string parameters are used in SQL queries to pull the content from a database?

    I bet you're writing bad SQL queries and your database is chewing up memory.

    You need to talk to your host and ask them why it is crashing. They can tell you which service is using too much memory.
    Deranged World

    Comment

    • Way3
      Confirmed User
      • Mar 2007
      • 1727

      #3
      I agree that it is unlikely that mod_rewrite is crashing your server. But if you need them, here a couple of good sources of information for Mod_rewrite and .htaccess:

      http://forum.modrewrite.com/

      http://cooletips.de/htaccess/

      Best of Luck!

      FULLY Managed! FREE Control Panel! FREE Month on ALL Shared Accounts!!!
      ICQ: 169-554-261
      Email: info[at]way3{dot}com

      Comment

      • YAP
        So Fucking Banned
        • Sep 2006
        • 177

        #4
        Originally posted by schneemann
        mod_rewrite isn't crashing your servers.

        Let me guess - you're rewriting dynamic URLs? The query string parameters are used in SQL queries to pull the content from a database?

        I bet you're writing bad SQL queries and your database is chewing up memory.

        You need to talk to your host and ask them why it is crashing. They can tell you which service is using too much memory.
        My CMS doesnt use mysql. It has dynamic urls though.
        Apache2 sucks up all the memory.

        Comment

        • YAP
          So Fucking Banned
          • Sep 2006
          • 177

          #5
          I managed to configure the mod rewrite directly in my apache config and i had no crashes today Still having a high load though but the first step was keeping the site online.

          Comment

          Working...