|
.htaccess files
Please put .htaccess file in your home directory Var/www/html. .htaccess files is very useful.
Following is four examples:( put the lines into your .htaccess file )
- File not found:
Options +FollowSymlinks
ErrorDocument 404 http://www.yourdomain.com/error.html
- Prevent other webmaster steal your traffic
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ [F,L]
Attention: .htaccess is very complicated and its application is beyond the support scope. But most common errors are the path of your .htpasswd. It should be your full path.
|