I’m considering moving my 301 redirects from php (typo3) to an encapsulated redirect in a php script called by htaccess. (http://sebastians-pamphlets.com/the-anatomy-of-http-redirects-301-302-307/#how-to-implement-ss-redirect)
My .htaccess would read:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule (.*) do-redirects.php
do-redirects.php would check the URL with the REQUEST_URI and return a 301 redirect to the canonical and final URL if it exists, 404 otherwise.
Has anyone used this technique? Are there any pitfulls?
BTW: Can anyone recommend an alternative header tool to Websniffer? Someone recently suggested that Gooblebot might not like things Websniffer doesn’t mind.