Many become paranoid just hearing the word .htaccess more less actually thinking about creating an .htaccess file. What's below is an effort to help you lose the fear and get your feet wet
With a text editor, create a file named .htaccess without any extension. Place it in your www directory. Add whatever lines below you like to it to accomplish some simple tasks that have great results
To define your own error pages use:
ErrorDocument 401 /not_authorized.html
(if you have a password protected directory and the visitor does not know the password then they would see your 'not_authorized.html' page rather then the default one.)
ErrorDocument 404 /not_found.shtml
(if you do not want to use 404.html you can change what the file is called)
ErrorDocument 500 /error.html
(ever had a script not work? Tired of seeing "Internal Server Error" change the page with this line)
If the full URL of your site is 'http://www.yourdomain.com', then '/error.html' means its location is 'http://www.yourdomain.com/error.html'. So if you like, you can also use '/subdir/error.html' to define another directory that contains your error documents.
Let's say you have http://your_domain.com/subdir/index.html
And you decide to move all of the files that were in /subdir/ into a new directory called /newdir/
This normally would cause all of your visitors to get a "404 File Not Found" error. BUT -
Place into the old directory a .htacces file that contains:
<Limit GET POST>
deny from all
ErrorDocument 403 /newdir/index.html </Limit>
This will redirect all visitors directly to your new directory, even the search engines
See... .htaccess files are great!
------------------
Unlocking the Power of the Internet!
www.FutureQuest.net
[This message has been edited by Deb (edited 01-26-99).]