SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I put a .htaccess file in a folder, say www.url.com/dir and a file named blah.htm is missing, will the .htaccess only catch files that are missing in the dir folder (www.url.com/dir/blah.htm being missing) or will it catch all 404's on the server?

  2. #2
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it will catch any files that you tell it too. I typically go through my error log's and access logs at least once a week and add them to .htaccess files.

    ------------------
    Eric Jones - WR Moderator / Administrator
    http://www.sitepoint.com
    eric@sitepoint.com

  3. #3
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will just catch the ones in /dir

  4. #4
    ********* Scotland Saltire's Avatar
    Join Date
    Jan 2000
    Location
    Scotland
    Posts
    660
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks folks

  5. #5
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    Montreal, Canada
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is .htaccess???? Just a brief definition would be great.

    heh heh, I'm pretty new at this.

  6. #6
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in a nutshell .htaccess is a file found on Unix (in this case Apache) servers. it's a text file that has lots of power. it has instructions in the file that will tell the server to tell the browser things.

    for example you can have it redirect any referrance to a certain directory to another directory. or you can have it set up to request a password and username from all visitors. (this is a little more complicated).

    there are many uses of .htaccess i'd recommend doing a search for them and see what you can do. or post a question in these forums with a specific request.

    ------------------
    Eric Jones - WR Administrator
    http://www.sitepoint.com
    eric@sitepoint.com
    ICQ 1215804 (mention WR)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •