GreenInfo-Network / caliparks.org

Mapping social media in parks and other open spaces
http://www.caliparks.org/
22 stars 3 forks source link

Change status code of "soft" 404's #644

Closed mkaufman closed 4 years ago

mkaufman commented 8 years ago

4/7 UPDATE: In further conversation: decided to 301 redirect these stories to the home page, to maintain the link authority passed to these pages from any external links. In general, if the page is not found, would be good to serve 404, but since these are a legacy page type, will 301 redirect them instead.

It looks like we are serving 200 status codes for some pages not found. e.g. http://www.caliparks.org/parks/story/camp-in-the-woods and http://www.caliparks.org/parks/story/jeff-sullivan-picks

Google doesn't like this, and it's a bad user experience. Those two links are included right now in the Google search result for "caliparks", under the link to the home page.

Can we change the status code to these page not founds to 404?

mojodna commented 8 years ago

@ebrelsford the old list of "stories" lives here (for seeding redirects.js): https://github.com/stamen/caliparks.org/blob/parksforward/config/stories.json

slug is the part under /parks/story/<slug>