Mod_ReWrite Questions....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xanobyte
    So Fucking Banned
    • Aug 2001
    • 328

    #1

    Mod_ReWrite Questions....

    Anyone here know how to set up mod_rewrite? It's already set to load in my httpd.conf, but when I stick an .htaccess somewhere, it just bypasses. Or is that normal for local requests?

    ------------------
    I wanna be a porn webmaster when I grow up!
  • dynamite
    Registered User
    • Aug 2001
    • 63

    #2
    Change 'AllowOverride None' to 'AllowOverride All' in access.conf. Or you can set 'All' for just one directory, for example:

    <Directory full/path/to/desired/dir>
    <Limit GET POST>
    order deny,allow
    deny from none
    allow from all
    </Limit>
    AllowOverride All
    </Directory>

    And even better - set up .htaccess rules between <directory></directory>... this is even faster than .htaccess file! Btw.. <limit> directives are optional.
    <font size="-3" color=magenta>


    [This message has been edited by dynamite (edited 08-17-2001).]

    Comment

    • Xanobyte
      So Fucking Banned
      • Aug 2001
      • 328

      #3
      Actually, this ver. recommends all directives to be in httpd.conf and leave access.conf empty, but are you saying I have to set up .ht rules for each directory I wanna cover in the virtual container?? Or can I do a blanket directive for the root and if it finds an .htaccess then so be it?

      ------------------
      I wanna be a porn webmaster when I grow up!

      Comment

      • dynamite
        Registered User
        • Aug 2001
        • 63

        #4
        Just one directive for the whole site can be enough. But if you want to have some directories with .htaccess and some without, then you must make separate 'directory' entries.

        Comment

        • afrocreep
          Confirmed User
          • Aug 2001
          • 1074

          #5
          for example

          <Directory /home/whatever/*>

          </Directory>

          will do that directory and everything under it

          ------------------
          Come home with me or I'll dispatch my legions of flying monkeys!

          Comment

          • Xanobyte
            So Fucking Banned
            • Aug 2001
            • 328

            #6
            Sweeeeeeeeeeet.
            I jacked my httpd.conf up a few times fuckin' around with it, (was tryin' to put too many directives in at the same time.)
            but I finally nailed it down.

            Thanks guys...

            ------------------
            I wanna be a porn webmaster when I grow up!

            Comment

            • Xanobyte
              So Fucking Banned
              • Aug 2001
              • 328

              #7
              Originally posted by dynamite:
              ...even better - set up .htaccess rules between <directory></directory>... this is even faster than .htaccess file
              I really like this.
              And no .htaccess for anyone to even try to hack.



              ------------------
              I wanna be a porn webmaster when I grow up!

              Comment

              • Xanobyte
                So Fucking Banned
                • Aug 2001
                • 328

                #8
                Hotlinkers, take note:
                The party is over on this server.
                (fuckin' bastards.)

                Comment

                Working...