Forum Moderators: phranque
Thanks for the advice. I'm having a problem, however. When I uploaded .htaccess I immediately started getting 500 errors when trying access my site.
What I had intended to was redirect 404s to a custom page, and to ban the Internetseer bot from the page. Without access to the Apache error logs, I can't tell what I did wrong or if there's something higher up on the server interfering with this.
Here's what I wrote:
ErrorDocument 404 /404.htmlRewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^InternetSeer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^sitecheck.internetseer.com
RewriteRule ^.* - [F]
Any ideas?
The code looks OK.
I can think of two possibilities:
1) You need to add "Options +FollowSymLinks" on a new line before "RewriteEngine on" -or-
2) You are not allowed to use mod_rewrite on Earthlink.
You might be able to use mod_access to ban internetseer - it might work even if mod_rewrite is not allowed.
SetEnvIf User-Agent [Ii]nternet[Ss]eer\.com getout
<Files *>
Deny from getout
</Files>
As usual, WebmasterWorld has proven to be very valuable.