The portion after the numeric status code is informational only. Anything can be put there. "301 Moved Permanently", or "301 Permanent Redirect" are commonly used. But "301 Error" is ok too. The important thing is the status code: 301.
Thanks for that useful piece of info. In Apache/.htaccess I didn't type any words after 301 so I assumed that the "Moved Permanently" was a positive confirmation (albeit the string was probably hardcoded into Apache). The 301 "Error" text threw me because I have since found another IIS5 site whose query result is:
I am having an issue with the duplicate content of my home page (ie. domain.com and www.domain.com). I'm on a Windows server, and I have some options (below) regarding the redirect, but none seem to work very well. Can anyone offer any insight?
1. Global.asa file - The problem with this solution is it only works for server side pages. You would not have to change the file extension from .htm to .asp but you would have to map the .htm/.html extension to run in IIS like an ASP page.
2. IIS 301 Redirect - I thought this would be the solution, however, it requires two IIS accounts or two accounts on the same server. What you would have to do is in your DNS record have domain.com going to one IP (account) and www.domain.com going to another ip. Both would physically point to the same directory on the server. Then in IIS you would redirect www.domain.com to domain.com
3. make the change at the DNS record. Right now the A record for www.domain.com and domain.com point to an IP address (11.222.333.444) . This IP address points to the IIS virtual directory that points to the physical directory.