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?
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
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