RewriteCond base on response staus code

Using a single web hosting account to host multiple sites

RewriteCond base on response staus code

Postby amsmota » Wed Jun 07, 2006 2:00 pm

Hello, new in here.

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.
amsmota
 
Posts: 1
Joined: Wed Jun 07, 2006 1:39 pm

Postby richardk » Thu Jun 08, 2006 4:57 am

What is redirecting the visitor?
Does the user see the redirect?
How does the server get those response headers? Surely they go to the browser.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 107 guests

cron