I need help ONCE again argh anyone good with .htacces ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Va2k
    I’m still alive barley.
    • Oct 2001
    • 10060

    #1

    I need help ONCE again argh anyone good with .htacces ?

    ErrorDocument 404 http://www.tomswhores.com/custom_page.html
    Im trying to put that in my .htacess file everytime I do this it gives me a interal server error im in my main dir and just cant fig this shit out. anyone here can help?
  • Daymare
    Confirmed User
    • Feb 2002
    • 2674

    #2
    Put the .htaccess file in the root of your server or folder that needs to be redirected to that error page. Also, make sure that the extention of the file is .htaccess

    A lot of people make the mistake of using notepad to edit it and it gets .htaccess.txt or something else on it so it won't work.

    Maybe this will help.

    Comment

    • Va2k
      I’m still alive barley.
      • Oct 2001
      • 10060

      #3
      Originally posted by Daymare
      Put the .htaccess file in the root of your server or folder that needs to be redirected to that error page. Also, make sure that the extention of the file is .htaccess

      A lot of people make the mistake of using notepad to edit it and it gets .htaccess.txt or something else on it so it won't work.

      Maybe this will help.
      Yea I using ssh to do it I have done what you said and still same thing

      Comment

      • Choker
        Confirmed User
        • Apr 2001
        • 9024

        #4
        AuthUserFile /dev/null
        AuthGroupFile /dev/null
        DirectoryIndex index.shtml index.html index.htm index.cgi index.php
        AddType text/html .html .htm
        AddHandler server-parsed .html


        deny from 216.235.162.106
        deny from 217.136.50.146
        deny from 63.67.222.15
        deny from 217.227.54.244
        deny from 66.189.44.234
        deny from 216.221.81.99
        deny from 216.235.162.106
        deny from 62.42.213.119
        deny from 206.87.130.15
        deny from 24.147.220.222
        deny from 61.149.25.133
        deny from 24.66.94.142
        deny from 66.32.73.19
        deny from 203.124.0.247
        deny from 194.251.240.107
        deny from 66.188.5.201
        deny from 216.221.81.99
        deny from 80.135.6.140
        deny from 24.71.223.141
        deny from 62.30.112.1
        deny from 24.69.255.203
        deny from 213.1.45.2
        deny from 62.254.64.6
        deny from 24.64.223.205
        deny from 213.47.15.106
        deny from 24.70.95.204
        deny from 24.171.0.92
        deny from 217.224.38.85
        deny from 63.224.229.98
        deny from 24.66.94.142
        deny from 217.219.41.194
        deny from 193.253.226.191
        deny from 61.124.242.190
        deny from 172.154.179.47
        deny from 207.250.143.99
        deny from 24.71.223.141
        deny from 67.194.0.253
        deny from 24.69.255.203
        deny from 24.70.95.204
        deny from 217.60.141.210
        deny from 218.225.134.125
        deny from 24.66.94.142
        deny from 66.185.84.199
        deny from 24.88.41.229
        deny from 217.227.97.232
        deny from 80.130.83.162
        deny from 216.148.246.134
        deny from 217.224.38.85
        deny from 216.21.143.75
        deny from 80.131.116.203
        deny from 205.188.208.70
        deny from 152.163.188.8
        deny from 64.12.96.38
        deny from 198.81.23.77
        deny from 205.188.208.168
        deny from 195.93.65.10
        deny from 152.163.188.194
        deny from 198.81.23.76
        deny from 64.12.96.76
        deny from 203.96.111.201
        deny from 195.93.49.14
        deny from 66.185.84.72
        deny from 207.172.11.232
        deny from 213.158.174.18
        deny from 195.93.33.14
        deny from 66.185.84.69
        deny from 68.61.160.64
        deny from 212.243.240.145
        deny from 207.16.153.38
        deny from 80.131.155.119
        deny from 211.14.222.229
        deny from 168.95.19.26
        deny from 24.114.206.59
        deny from 203.96.111.201
        deny from 68.100.64.7
        deny from 61.207.243.12
        deny from 205.188.208.168
        deny from 152.163.188.194
        deny from 64.12.96.76
        deny from 24.69.255.202
        deny from 152.163.189.171
        deny from 198.81.23.6
        deny from 211.216.216.32
        deny from 24.126.22.145
        deny from 195.93.50.7
        deny from 213.224.83.11
        deny from 62.254.0.7
        deny from 194.65.14.68
        deny from 195.93.72.7
        deny from 195.93.34.7
        deny from 165.121.229.196
        deny from 61.201.112.239
        deny from 205.188.208.41
        deny from 213.153.175.62
        deny from 207.250.143.189
        deny from 212.243.240.186
        deny from 68.10.120.7
        deny from 62.254.0.7


        #deny from twnic.net

        RewriteEngine On
        RewriteOptions inherit
        RewriteCond %{HTTP_USER_AGENT} ^.*Iria.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Stripper.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Offline.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Copier.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Crawler.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Snagger.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Reaper.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Grabber.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Sucker.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Downloader.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Siphon.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Collector.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Mag-Net.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Widow.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Pockey.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*DA.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Snake.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*BackWeb.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*gotit.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Vacuum.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*SmartDownload.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Pump.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*HMView.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Ninja.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*HTTrack.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*JOC.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*likse.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Memo.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*pcBrowser.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*SuperBot.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*leech.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Mirror.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Recorder.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*GrabNet.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Likse.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Navroad.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*attach.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Magnet.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Surfbot.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Bandit.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Ants.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Buddy.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*DISCo\Pump.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Drip.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*EirGrabber.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*ExtractorPro.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*EyeNetIE.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*FlashGet.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*GetRight.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Gets.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Go!Zilla.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Go-Ahead-Got-It.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Grafula.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*IBrowse.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*InterGET.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Internet\Ninja.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*JetCar.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*JustView.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*MIDown\tool.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Mister\PiX.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*NearSite.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*NetSpider.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Offline\Explorer.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*PageGrabber.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Papa\Foto.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Pockey.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*ReGet.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Slurp.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*SpaceBison.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*SuperHTTP.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Teleport.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebAuto.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebCopier.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebFetch.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebReaper.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebSauger.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebStripper.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebWhacker.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*WebZIP.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Web\Image\Collector.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Web\Sucker.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Webster.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*eCatch.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*ia_archiver.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*lftp.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*tAkeOut.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Webdup.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*Fetch.API.*$ [OR]
        RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$
        RewriteRule /* http://www.annsxxx.com/index.shtml?wmid=choker [R,L]

        RewriteCond %{HTTP_REFERER} ^http://.*sweetcutelolitas.com/* [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://.*ineedfreesex.com/* [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://.*real-series.com/* [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://.*crazyseries.com/* [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://.*othersite.com/* [NC]
        RewriteRule .* http://www.annsxxx.com/index.shtml?wmid=choker [R,L]


        #RewriteCond %{HTTP_REFERER} !^http://198.65.142.102/.*$ [NC]
        #RewriteCond %{HTTP_REFERER} !^http://.*chokinchicken.com/.*$ [NC]
        #RewriteRule .*[Jj][Pp][Gg]$ /hotlink.gif [R,L]

        ErrorDocument 301 /index.shtml
        ErrorDocument 403 /index.shtml
        ErrorDocument 404 /index.shtml
        ErrorDocument 416 /index.shtml
        Last edited by Choker; 05-29-2002, 06:44 PM.
        ICQ me lets make a deal 116894466

        Need dating, cam, or tube traffic? I got it.http://http://www.chokertraffic.com

        The Original http://www.chokertraffic.com/

        Premium country pop-unders from $1.50 per k. I challenge you to compare this traffic to any other brokers.
        http://www.chokertraffic.com/public/tabs.php?t=o

        Comment

        • Choker
          Confirmed User
          • Apr 2001
          • 9024

          #5
          If your server uses Plesk, try the above htaccess. Plesk is funny with htaccess
          ICQ me lets make a deal 116894466

          Need dating, cam, or tube traffic? I got it.http://http://www.chokertraffic.com

          The Original http://www.chokertraffic.com/

          Premium country pop-unders from $1.50 per k. I challenge you to compare this traffic to any other brokers.
          http://www.chokertraffic.com/public/tabs.php?t=o

          Comment

          • mike503
            Confirmed User
            • May 2002
            • 2243

            #6
            look in your error_log - it might say shit like "ErrorDocument is not allowed here" - although it should be. also make sure the permissions on it are ok and you don't have anything else in it that could be causing an error.
            php/mysql guru. hosting, coding, all that jazz.

            Comment

            • Va2k
              I’m still alive barley.
              • Oct 2001
              • 10060

              #7
              Originally posted by Choker
              If your server uses Plesk, try the above htaccess. Plesk is funny with htaccess
              OH freaking HELLLL That was a good .htacess file but still did the same thing YES I changed your urls to mine

              Comment

              • mike503
                Confirmed User
                • May 2002
                • 2243

                #8
                did you try ONLY having the ErrorDocument line in there. did you look at your error_log? it should tell you right away.

                what version of apache is this? fairly new?

                also, it shouldn't cause an error, but maybe you need to have soe Options set in your httpd.conf to allow yourself to put .htaccess files in arbitrary places.
                php/mysql guru. hosting, coding, all that jazz.

                Comment

                • jimmyf
                  OU812
                  • Feb 2001
                  • 12651

                  #9
                  Are you transfering it in ASCII
                  Epic CashEpic Cash works for me
                  Solar Cash Paysite Plugin
                  Gallery of the day freesites,POTD,Gallery generator with free hosting

                  Comment

                  • Va2k
                    I’m still alive barley.
                    • Oct 2001
                    • 10060

                    #10
                    there is not transfering of this file I make it up in ssh * ssh is like a telnet* yes mike I have tried just that THIS IS A FREAKING COLBALT server argh

                    Comment

                    • FierceHost
                      Confirmed User
                      • Apr 2002
                      • 424

                      #11
                      try

                      ErrorDocument 404 http://www.domain.com/file.html
                      AuthName www.domain.com
                      250$ 1000GB / Mo - 2000mb space - 10 domains - .26 per gig overage
                      <font color="#00FF00">ICQ 132871574</font>

                      Comment

                      • FierceHost
                        Confirmed User
                        • Apr 2002
                        • 424

                        #12
                        also try editing your access.conf and allowing it
                        250$ 1000GB / Mo - 2000mb space - 10 domains - .26 per gig overage
                        <font color="#00FF00">ICQ 132871574</font>

                        Comment

                        • Va2k
                          I’m still alive barley.
                          • Oct 2001
                          • 10060

                          #13
                          This is what is in my httpd.conf file for tomswhores
                          </VirtualHost>
                          <VirtualHost 216.40.201.26>
                          ServerName www.tomswhores.com
                          ServerAdmin admin
                          DocumentRoot /home/sites/site6/web
                          RewriteEngine on
                          RewriteCond %{HTTP_HOST} !^216.40.201.26(:80)?$
                          RewriteCond %{HTTP_HOST} !^www.tomswhores.com(:80)?$
                          RewriteRule ^/(.*) http://www.tomswhores.com/$1 [L,R]
                          RewriteOptions inherit
                          AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site6/users/$1/web/$3
                          AddHandler cgi-wrapper .cgi
                          AddHandler cgi-wrapper .pl
                          AddHandler server-parsed .shtml
                          AddType text/html .shtml
                          AddType application/x-httpd-php .php4
                          AddType application/x-httpd-php .php
                          </VirtualHost>

                          its almost greek to me lol

                          Comment

                          • mike503
                            Confirmed User
                            • May 2002
                            • 2243

                            #14
                            Originally posted by FierceHost
                            also try editing your access.conf and allowing it
                            heh access/resource.conf have been deprecated for over a year..
                            php/mysql guru. hosting, coding, all that jazz.

                            Comment

                            • spanky
                              Confirmed User
                              • Apr 2002
                              • 231

                              #15
                              try adding this to your httpd.conf file...

                              PHP Code:
                              <Directory /home/sites/site6/web  >
                               AllowOverride FileInfo
                              </Directory> 
                              
                              cheers
                              Last edited by spanky; 05-29-2002, 07:29 PM.

                              Comment

                              • mfreund
                                Registered User
                                • Apr 2002
                                • 59

                                #16
                                I had the same kind of prob and this is how i fixed it just format the line like this in your .htaccess

                                ErrorDocument 404 /put file name here


                                In other words point to it with the "/" like a path instead of the url...make sure that the file you point to is in the same directory as your .htaccess




                                Hope that helps



                                Matt
                                Hot Dog Press Screenprinting,Embroidery and Digital Apparel Printing
                                Many Styles and Sizes of Shirts.
                                Fast Affordable Service.
                                We Print ANY Quantity.
                                Click Link for Prices

                                Comment

                                • spanky
                                  Confirmed User
                                  • Apr 2002
                                  • 231

                                  #17
                                  or putting your ErrorDocument directive in your httpd.conf file

                                  cheers

                                  Comment

                                  • Va2k
                                    I’m still alive barley.
                                    • Oct 2001
                                    • 10060

                                    #18
                                    NOTHING is working errr
                                    The server encountered an internal error or misconfiguration and was unable to complete your request.

                                    this is what I get when I TRY everything

                                    Comment

                                    • spanky
                                      Confirmed User
                                      • Apr 2002
                                      • 231

                                      #19
                                      [php]<Directory /home/sites/site6/web >
                                      AllowOverride FileInfo
                                      </Directory>[php]


                                      I mispelled Override the first time ;)

                                      if it doesn't work what is the error in the log?

                                      cheers
                                      Last edited by spanky; 05-29-2002, 07:31 PM.

                                      Comment

                                      • Va2k
                                        I’m still alive barley.
                                        • Oct 2001
                                        • 10060

                                        #20
                                        [Wed May 29 23:39:55 2002] [alert] [client 68.10.106.150] /home/sites/site6/web/.htaccess: AddType not allowed here
                                        [Wed May 29 23:39:57 2002] [alert] [client 68.10.106.150] /home/sites/site6/web/.htaccess: AddType not allowed here

                                        Comment

                                        • spanky
                                          Confirmed User
                                          • Apr 2002
                                          • 231

                                          #21
                                          did you restart apache after changing your httpd.conf?

                                          cheers

                                          Comment

                                          • spanky
                                            Confirmed User
                                            • Apr 2002
                                            • 231

                                            #22
                                            ack... what a horrible little title to appear under my name... ;-/

                                            Comment

                                            • foe
                                              Confirmed User
                                              • May 2002
                                              • 5246

                                              #23
                                              Originally posted by va2k

                                              OH freaking HELLLL That was a good .htacess file but still did the same thing YES I changed your urls to mine
                                              You need to go into httpd.conf (ooo scary) and allow mod rewrite in .htaccess files, it is probably disables there

                                              Comment

                                              • spanky
                                                Confirmed User
                                                • Apr 2002
                                                • 231

                                                #24
                                                Originally posted by foe


                                                You need to go into httpd.conf (ooo scary) and allow mod rewrite in .htaccess files, it is probably disables there
                                                he's not trying to rewrite, he's got a problem with his ErrorDocument directive in an htaccess which is a FileInfo overide.

                                                The httpd.conf file that va2k already posted had rewrite rules in it so his rewriting is enabled fine.

                                                cheers

                                                Comment

                                                • Va2k
                                                  I’m still alive barley.
                                                  • Oct 2001
                                                  • 10060

                                                  #25
                                                  This is so stressing lmao still cant get this goign

                                                  Comment

                                                  • spanky
                                                    Confirmed User
                                                    • Apr 2002
                                                    • 231

                                                    #26
                                                    Originally posted by va2k
                                                    This is so stressing lmao still cant get this goign
                                                    at least you're laughing...

                                                    did you try just putting the ErrorDocument directive in your httpd.conf file and restarting apache?

                                                    cheers

                                                    Comment

                                                    • Va2k
                                                      I’m still alive barley.
                                                      • Oct 2001
                                                      • 10060

                                                      #27
                                                      yeappers

                                                      Comment

                                                      • spanky
                                                        Confirmed User
                                                        • Apr 2002
                                                        • 231

                                                        #28
                                                        did apache restart without issuing any errors?

                                                        did you remember to remove the .htaccess file that was causing the problem when you did this?

                                                        cheers

                                                        Comment

                                                        Working...