I'm trying to RewriteCond based on Status Code of a http response, but i can't find a way, and i've searched a lot of sites and groups.
Let me try to expand. Sometimes i redirect a link to a page that itself redirects to another page, so it sends back to my server
HTTP/1.0 302 Moved Temporarily\r\n
Request Version: HTTP/1.0
Response Code: 302
Date: Wed, 07 Jun 2006 18:25:44 GMT\r\n
Server: Microsoft-IIS/5.0\r\n
X-Powered-By: ASP.NET\r\n
Location: Site/Main/missao.htm\r\n
so what i want to do is catch this 302 in a RewriteCond so i can redirect it to the Location Site/Main/missao.htm.
Also, i don't know how can i get the server from where that response comes, so i can pre append it to the location.
I hope this is not a dumb question, so bare with me.
Thanks a lot.