Hi,
301 Redirect is our own attemt of solving the problem. There's no result but extra one redirect. Now we disabled this rule in the UrlRewrite module.
The code of the page http://85.21.218.136/index.php is
<?
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://rarus.ru");
?>
This is only a test page with test redirect. The forming of the new url is much more difficult on the working production site.
By use of fiddler you and we see, that redirect to http://rarus.ru is going with 302 status. Why?
Yesterday, looking in freb logs, we have cleared, it is FastCGI Module, that changes HttpStatus from 301 to 302.
Look at these freb logs:
№147 MODULE_SET_RESPONSE_SUCCESS_STATUS
ModuleName FastCgiModule
Notification 128
HttpStatus 301
HttpReason Moved Permanently
Notification EXECUTE_REQUEST_HANDLER
№148 MODULE_SET_RESPONSE_SUCCESS_STATUS
ModuleName FastCgiModule
Notification 128
HttpStatus 302
HttpReason Redirect
Notification EXECUTE_REQUEST_HANDLER
Why FastCGI Module changes statuses from 301 to 302? In the end client receives 302 status instead of 301.
How can we manage this? We want to redirect by use of PHP with 301 Status.