Forum Moderators: open

Message Too Old, No Replies

404 vs redirect on affiliate site when pages have lifespan of 6 months

         

JS_Harris

9:13 pm on Aug 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi, I'm working with a new type of php based site (new to me) that doesn't require a database and is nearly 100% dynamic via multiple api calls and file includes. It's designed to manage affiliate content from data feeds and works well but the content (hence the pages) only has a lifespan of roughly 6 months before being obsolete.

For visitor usability it's best these expired pages no longer exist to avoid confusion so I want to get some feedback on how to best control search engine indexing.

Since the pages are gone a 404 page is appropriate, but I have the following concerns.

- Will serving up a 404 on EVERY page after 6 months damage the sites quality in the eyes of search engines?
- Incoming links to product pages would all lead to 404 after 6 months, the site may gather many of them but none would benefit the site and having a lot of broken links all over the web can't be good.

I could make the 404 page descriptive and offer other options for visitors to find what they want, yes, but I want your opinion on if a redirect would be appropriate in this case because...

- Though the product pages become obsolete a new very similar product becomes available at that time, permanently redirecting to say the main category page for that product may be helpful.

- Redirecting MIGHT also help the site retain some of the incoming link value so that the site would benefit over time as all sites do from naturally occurring incoming links.

404 vs 301 vs ? What would you do with this type of site where every page becomes obsolete in 6 months?

JS_Harris

12:35 am on Aug 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've decided to go with 404.

I should have mentioned however that 404 IS NOT what's happening on the site. Technically a page is being generated properly however the data normally on that page is no longer available.

To make matters worse the host does not allow .htaccess control.

SO, i've gone with a different approach for 404.

I check to see if the data is available, if it's not I return the following before anything is output to the page which does result in a valid 404 error (according to live headers plugin for FF)

else {
header("HTTP/1.1 404 Not Found");
}

I'd like to customize the 404 a bit, perhaps like this...

else {
header("HTTP/1.1 404 Not Found");
echo("some helpful text and links here");
}

I don't see any problems with this method but i'm asking because if problems exist perhaps someone here can spot it? WW rocks.