# Can ElasticSearch ignore pages that are status 301 and 404?

**URL:** <https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068>\
**Category:** Elasticsearch\
**Created:** [April 9, 2019, 4:02pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068 "2019-04-09T16:02:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rangerlike](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rangerlike](https://discuss.elastic.co/u/rangerlike)\
**Post date:** [April 9, 2019, 4:02pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068/1 "2019-04-09T16:02:36Z")

</div>

We have duplicate pages showing up in our results. If we 301 redirect these, will that solve the issue?  
Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 9, 2019, 10:39pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068/2 "2019-04-09T22:39:16Z")

</div>

It's not really clear what you are referring to here, can you add a bit more info?

---

<div class="post-metadata">

**Author:** ![rangerlike](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rangerlike](https://discuss.elastic.co/u/rangerlike)\
**Post date:** [April 15, 2019, 2:04pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068/3 "2019-04-15T14:04:04Z")

</div>

We're implementing ElasticSearch and it's showing duplicate pages in the search results. Our fix for SEO is to redirect these pages with a 301.This would eliminate our duplicate pages for external search. If we were to fix those duplicate pages, would ElasticSearch (our internal site search) also read the 301 and only deliver the one page or will it still serve both pages in the search results.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 15, 2019, 7:51pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068/4 "2019-04-15T19:51:13Z")

</div>

Elasticsearch will serve results based on the data it is fed. So if something it sending it multiple pages then you will need to look at that process first.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 13, 2019, 7:57pm UTC](https://discuss.elastic.co/t/can-elasticsearch-ignore-pages-that-are-status-301-and-404/176068/5 "2019-05-13T19:57:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
