#RewriteEngine On
#rewritecond %{http_host} ^DOMAINNAME.com
#rewriteRule ^(.*) http://www.DOMAINNAME.com/$1 [R=301,L]

#Set index file precendence if needed
#DirectoryIndex index.htm index.php index.html

#Turn on 755 privs for live site
#Action application/x-pair-sphp5 /cgi-sys/php-cgiwrap/biztools/php5.cgi
#AddType application/x-pair-sphp5 .php

#Turn on 755 privs for dev, non-domain site site
Action application/x-pair-sphp5 /cgi-sys/php-cgiwrap/sportsfl/php5.cgi/users/
AddType application/x-pair-sphp5 .php 

# Increase memory value default is 32 DO NOT EXCEED 128
# php_value memory_limit 32M

#This increases the allowed size of uploads. 
#php_value upload_max_filesize 32M
#php_value post_max_size 128M
#php_value memory_limit 128M

# turn on the module for this directory
#WARNING: IF USING SQUIRRELCART COMMENT OUT OR REMOVE THIS ENTIRE BLOCK
ExpiresActive on
# set default
ExpiresDefault "access plus 24 hours"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresByType text/javascript "access plus 1 months"
ExpiresByType application/javascript "access plus 1 months"
ExpiresByType application/x-shockwave-flash "access plus 1 months"

#Set 404 error page- make sure file is uploaded first
#ErrorDocument 404 http://www.DOMAIN.com/404.php

#This is designed to help prevent automated spamming
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# prevent viewing of a specific file
#<Files secretfile.jpg>
 #order allow,deny
 #deny from all
#</Files>

# multiple file types
#<FilesMatch ".(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
#Order Allow,Deny
#Deny from all
#</FilesMatch>