PDA

View Full Version : .htaccess



timdawg
July 24th, 2001, 13:18
what does this file actually do?
thanx

off subject, but hav u guys heard a bout that new email virus?

meow
July 24th, 2001, 14:40
Yep. It's discussed over at the General forum. Heard a friend of mine got it as his work. It downloaded a BIG attachment.

.htaccess is per directory server (Apache) configuration. Instead of configuring the server centrally to act in a specific way you can drop a .htaccess file in a directory and it's good only for that directory and the directories below that one in the file structure.

If you for instance use it for password protection and drop the .htaccess in your main directory your whole site will be protected. Drop it in /mylittlesecret/ and only that directory (and others within that) will be affected.

It's very neat and can do a bunch of cool things. :)

timdawg
July 24th, 2001, 16:19
thanx, sounds complicated

jon787
July 24th, 2001, 16:54
You can also use it do say where 404 errors and other errors redirect to. Like your main page or a page with a custom 404 error message.

meow
July 24th, 2001, 17:23
Not that I'm an expert, but it isn't complicated. Mostly you just add a line or two to a text file. It's fun. The hard part is to find out what you can do. I don't think there is like a complete tutorial.

cir
July 24th, 2001, 17:43
http://bignosebird.com

It has a bunch of tutorials on perl, .htaccess, ssi, apache, & a bunch of others.

Also, are you talking about that sircam virus? I have received over 15 copies of the stupid thing!(I run an obviously virus infected mailing list :D)

meow
July 24th, 2001, 18:10
Did it send really BIG attachments? Any nasty personal files you can show us? :D
Reminds me - must upgrade my sig files. :p