Forum Moderators: phranque
Aside, 200 OK would create duplicate content pages which might be bad..
Any comments about the correct handling of short uri's?
Err, just found out that there is such a thing as 303 see other, which might be what i'm looking for.
ref: [w3.org...]
The pages you want the SEs to index should ALWAYS return a 200 header. If you are revising your site and you presently have existing pages with long URLs indexed in the SEs, those pages should return a 301, after the short URL versions are available. The 301 should redirect the SEs to the new, short URL pages. Doing this will alert the SEs that the pages have been "moved" and that they will soon be removed from the site. In response, the SEs will update your listings. This updating process can take several months. Since using a 301 on the long URL pages effectively tells the SEs "don't index this page, go to the new page and index it," duplicate content is not an issue.
So I wrote an extra script that translates the short uri back into the long one (by searching for the file in all categories) and then send a header to have the browser fetch the right page. And this header should have some status code.
Now I thought 200 should be ok because the short uri is valid, but it seems odd to say 200 ok and yet have the browser fetch another page.
301 would seem not really apropriate as well cause nothing has moved..
Meanwhile I found the 303 code which seems ok.
Btw I do assume that both browsers and spiders handle all
30x codes the same way.
To make a long story short, how does one redirect if the url is valid but the content is somewhere else..
thanks for your time
Max