Forum Moderators: DixonJones
Note: I have a custom 404 page.
(These 301s currently take up 241 lines and 17,581 bytes all by themselves, not to mention space taken by IP Number and RewriteCond %{HTTP_USER_AGENT} bans...my thoughts are towards trimming my .htaccess down a tad.)
Thanks.
Pendanticist.
surely the length of the .htaccess (just like the httpd.conf) is only read on a server-side level, so can be quite big?
i too am wondering how long for a 301 is long enough. some bots just won't behave ;-)
I'd check two things. First, are you getting any significant traffic through the old URLs, from visitors rather than spiders? Second, are there any high PR links to the old URLs? If the answer is no to both, I'd let the custom 404 handle those cases.
As to .htaccess size, if you have the option I'd consider moving the contents to the main httpd.conf file, which would improve performance as those configuration options are stored in memory rather than read from disk with every request.
Having said that, I think in most cases the performance hit is caused by having to read .htaccess in the first place (along with each .htacess up the directory tree to document root). I'd be interested if anyone has any figures on this, but I'd have thought that unless the size gets waaay out of hand it isn't really an issue.
AuthName yada, yada, yada.
AuthUserFile yada, yada, yada.
AuthGroupFile yada, yada, yada.
ErrorDocument 404 /missing.html
# Send a permanent redirect from our old file to our new file(this is where I had alllll the redirects.)
RewriteEngine On
# RewriteCond %{HTTP_USER_AGENT} AaronCarter [NC,OR]
blah
blah
blah
blah
Is it copesetic to leave it this way?
Thanks again. :)
Pendanticist.