Need .htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DarkJedi
    No Refunds Issued.
    • Feb 2001
    • 28301

    #1

    Need .htaccess help

    People, i need help setting my own 404 page.
    My host told me to use .htaccess file

    Ho wdo I install that .htaccess ? and how do i make it ?
    Please help. Thanks.
  • Rocky
    Confirmed User
    • Jul 2001
    • 3022

    #2
    here you go Dark Jedi
    http://bbs.gofuckyourself.com/board/...ML/007768.html
    Are you down with Sin?

    Comment

    • Coke
      Confirmed User
      • Feb 2001
      • 108

      #3
      It's pretty easy.
      Create a new file with notepad and call it .htaccess Make sure it has no .txt extension.
      When write the following into it:

      ErrorDocument 404 /404.html

      and replace /404.html with any url you want (which should actually exist of course ).

      ------------------
      Current Special: Dedicated Servers for less than $2 per GB, including server rental!
      Contact me: 17021242 [email protected]
      Affordable webhosting.
      [email protected] ICQ: 17021242

      Comment

      • DarkJedi
        No Refunds Issued.
        • Feb 2001
        • 28301

        #4
        Thanks ! everything's clear now

        Comment

        • DarkJedi
          No Refunds Issued.
          • Feb 2001
          • 28301

          #5
          1 more thing.
          can i have several of those lines:
          RewriteCond %{HTTP_REFERER} !^http://.*yourdomain.com/.*$ [NC]


          ?
          I use 4 domains at 1 hosting account

          Comment

          • Amputate Your Head
            There can be only one
            • Aug 2001
            • 39075

            #6
            lemme reword this...
            yes, you can have multiple lines like that, but your domains each should have their own directories, so you want to create a unique .htaccess file for each domain...

            [This message has been edited by Amputate Your Head (edited 08-30-2001).]
            SIG TOO BIG

            Comment

            • DarkJedi
              No Refunds Issued.
              • Feb 2001
              • 28301

              #7
              I have a complex dir structure:

              Public_html - root dir where I have all my files from domain 1 and where sit dirs for other domains.

              So i put .htaccess to public_html with protection for domain 1 i think it will block other domains no ?


              So I've put protection for all domains into 1 .htaccess and uploaded htaccess into root domain - i think it's working

              [This message has been edited by DarkJedi (edited 08-30-2001).]

              Comment

              • Amputate Your Head
                There can be only one
                • Aug 2001
                • 39075

                #8
                Just create a blank test page and hotlink one of your own pics to test for that, then type in a URL that doesn't exist and see if you go to wherever you specified for the 404s...
                SIG TOO BIG

                Comment

                Working...