# section 1 top of the .htaccess file
ErrorDocument 403 /403.php
# valid not found php pages (e.g. those not in sensitive folders) are redirected to the normal
# zen cart not found page.
ErrorDocument 404 /index.php?main_page=page_not_found

## added this bit
ErrorDocument 404 /404.txt
## end added this bit

# section 2 RewriteBase needs a trailing forward slash
ReWriteEngine On
RewriteBase /
# section 3 should go after RewriteBase before any other rules
# redirects the July 2009 worm.
RewriteRule record_company.(php|html).*password_forgotten.(php|html) /404.php [L]
# blocks access to the docs folder
RewriteRule docs /403.php [L]
# blocks access to the extras folder
RewriteRule extras /403.php [L]
# blocks access to the install.txt
RewriteRule install.txt /403.php [L]

## added this bit
# blocks access to the admin
RewriteRule ^admin/ /404.txt [L]
## end of added this bit

ReWriteCond %{REQUEST_URI} !/404.php$
# an old worm but still active
ReWriteCond %{QUERY_STRING} autoLoadConfig\[\d*\]\[\d*\] [NC,OR]
# current worm but request seems to be from a different variation of the botnet
ReWriteCond %{QUERY_STRING} record_company.(php|html).*password_forgotten.(php|html) [NC]
ReWriteRule .* /404.php [L]
# stops any bots testing if your site has been hacked.by trying to include a file
# stops direct access to the images folder as a back up.
ReWriteCond %{REQUEST_URI} !/403.php$
ReWriteCond %{QUERY_STRING} (images|media|downloads|pub|cache|docs|bmz_cache)/.*\.(php|txt|so|phtml|py|cgi|pl|v|ini) [NC,OR]
ReWriteCond %{REQUEST_URI} (images|media|downloads|pub|cache|docs|bmz_cache)/.*\.(php|txt|so|phtml|py|cgi|pl|v|ini) [NC]
ReWriteRule .* /403.php [L,F]

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^allclaveparts.com [nc]
rewriterule ^(.*)$ http://www.allclaveparts.com/$1 [r=301,nc]