.htaccess Sheet
26 Apr 2011, Posted by All Posts, Website Talk
in
span.post {text-decoration: underline;} Disable directory listing: IndexIgnore * -or- Options -Indexes Change default "index" page: DirectoryIndex anyfilename.html Custom 404 page redirect: # 404 error redirect # ErrorDocument 404 /full/directory/path/404.html Hotlinking protection: # hotlink protection # RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.(gif|jpg|png|ico)$ - [F,L] 1 hour web browser caching (improves site performance): # default expires set...