I recently set up monitoring for my mod_rewrite server with help in the question Pattern matching across multiple lines.
Every once in a while - I'm not sure what triggers it - I get a HTTP/1.1 301 OK
instead of a HTTP/1.1 301 Moved Permanently
. Why?
This is currently causing my scripts to create a false positive. The rewrites are of the following form.
RewriteRule ^ http://www.mydomain.org%{REQUEST_URI} [R=301,L]
The rewrite rule is still working and I still eventually get a 200 code back from www.mydomain.org.
I can update the regular expressions to match on a 301 OK but I'd really like to know why it would change.
I'm running the latest release of CentOS 5 on the server if it matters.