htaccess
SSL Required and Redirect
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://example.com/path/ [R]
SSLRequireSSL
#no non-ssl access
Redirect permanent /secure https://www.example.com/secure
Auth Required
AuthUserFile /home/joe/.htpassdb
AuthName "Restricted - Joe's Files"
AuthType Basic
<Limit GET>
require user joe
</Limit>
# or "require valid-user"
Simple Redirect
Redirect /tnt http://acm.unomaha.edu/~bw/tnt/
Redirect /1400 http://acm.unomaha.edu/~bw/1400
Redirect /email https://freemail.cotse.net/freemail/mail/src/login.php
Redirect /notes https://brianwiese.net/files/notes
Error Redirect
ErrorDocument 404 /notfound.html
ErrorDocument 403 http://somesite.com/errors/403.php