HTTP Status Codes: 302 Temporarily Moved (redirect) - When is it appropriate to use?
-
I have an ecommerce site that is a subdomain of another site. I have been receiving a large number of 302 Moved temporarily (redirect)status codes and have become quite concerned that my customers are being rerouted to the main domain. For example, my site is www.mysite.mainsite.com and I'm concerned the customers are being rerouted to www.mainsite.com. When I ask the main site administrator about the large number of 302 codes, I'm told different things, the latest of which is that the 302 codes appear whenever a customer views their shopping cart. This makes no sense because the shopping cart URL starts with www.mysite.mainsite.com so I don't see the need for a redirect. I was previously told that my site stats will show a 302 code for each page of the checkout process (which have secure pages and a URL that begins with https.). Any insight into this would be greatly appreciated because I am becoming quite upset about this and feel that my sales are being skimmed.
-
I have an ecommerce site that is a subdomain of another site. I have been receiving a large number of 302 Moved temporarily (redirect)status codes and have become quite concerned that my customers are being rerouted to the main domain. For example, my site is www.mysite.mainsite.com and I'm concerned the customers are being rerouted to www.mainsite.com. When I ask the main site administrator about the large number of 302 codes, I'm told different things, the latest of which is that the 302 codes appear whenever a customer views their shopping cart. This makes no sense because the shopping cart URL starts with www.mysite.mainsite.com so I don't see the need for a redirect. I was previously told that my site stats will show a 302 code for each page of the checkout process (which have secure pages and a URL that begins with https.). Any insight into this would be greatly appreciated because I am becoming quite upset about this and feel that my sales are being skimmed.
I found this on Google
10.3.3 302 Found
The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. The status codes 303 and 307 have been added for servers that wish to make unambiguously clear which kind of reaction is expected of the client.
and
This may be a self-referencing URL, which could be causing the 302 message, I'm also curious to wether this HTTPS site uses session only cookies (which may be a good possibility
http://forums.powweb.com/showthread.php?t=73248[^] [^] http://webarchive.jira.com/browse/HER-1560[^] Hope this Helps
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/