Forum Moderators: open

Message Too Old, No Replies

Url rewriting and 302 errors

         

kenpachi

8:39 pm on Mar 25, 2008 (gmt 0)

10+ Year Member



Hi, my site uses url rewriting and I thought everything was fine, but I noticed that Google keeps showing 302 redirect errors in google webmaster tools for those urls. If I click on those urls they works fine, but Google thinks redirections are going on.

My site is developed using C# and Asp.net 2.0, and I am using the Intelligencia.UrlRewriter module for rewriting. I have read about some bug people had around a year or two ago, but I don't see how that would be the problem, my site is hosted on a IIS 7 server, and I have latest version of the rewrite module.

Any help is appreciated.

Murs

9:10 pm on Apr 18, 2008 (gmt 0)

10+ Year Member



I had this same issue but not with the rewrite version and IIS version you have. But none the less Google said my Rewrite was producing 302 redirects.

I don't know if you coded your site like I did but I made a rewrite page that would take anything after the .com/ and find a related page based on words used if the actual page wasn't found.

The issue I had was Google would test for a valid 404 Page Not Found.
The site never responded with a 404 error because it would search for related content and display it everytime are return 200 Page Found status.

I changed the code to allow for 404 Page Not Found in my rewrite script and Google never reported another Redirect 302 error.

Again, I don't know if this is your case but test to make sure your 404 Page Not Found is coming up correctly before anything else.

docluv

3:49 pm on May 5, 2008 (gmt 0)

10+ Year Member



Check the headers being sent by your site. Google should only indicate a 302 if you are sending a 302 status code. Which if your rewrite module was written correctly should never send.

[edited by: encyclo at 11:23 pm (utc) on May 5, 2008]
[edit reason] no links to personal sites please [/edit]