# Soil Nice Search Url Gives 404

**URL:** https://discourse.roots.io/t/soil-nice-search-url-gives-404/21926
**Category:** plugins
**Tags:** soil
**Created:** 2021-12-21T22:25:38Z
**Posts:** 6

## Post 1 by @tastet — 2021-12-21T22:25:38Z

Hi! Soil works great and creates a nice URL for search requests from my form.

However, the search URL does not work by itself, as in I can’t just view a search page without a query.

I see the same problem on the roots example project:

[https://roots-example-project.com/search/hello/](https://roots-example-project.com/search/hello/)  
This works because hello is the query

[https://roots-example-project.com/search/](https://roots-example-project.com/search/)  
This doesn’t work and gives a 404 because it has no query

---

## Post 2 by @ben — 2021-12-21T23:34:15Z

Hey @tastet, thanks for the report! [I forgot this has been reported before in the past, too](https://github.com/roots/soil/issues/269)

I will take a look at what we can do to improve this experience

---

## Post 3 by @tastet — 2021-12-22T13:57:41Z

Great! In our case, we need the search page to actually show because we use Algolia and let people do an advanced search from there. I think others, like in the link you showed, prefer a redirection to the home page.

For now, I’m going to see if adding a rewrite\_url for that specific link /search/ would work or if I need to create an actual page with that permalink. The latter might be problematic with Soil, tbd!

---

## Post 4 by @tastet — 2021-12-22T14:21:43Z

Actually, I’ve been doing some tests and this bug is not linked to Soil, since I have the same error with Soil turned off.

It comes from Polylang and its translated slugs on the Pro version. Will share a solution, if I find one!

---

## Post 5 by @tastet — 2021-12-29T14:40:26Z

So my solution to this was to turn off Soil/nice-search and only use the ?s search argument as Polylang redirects an empty search url to a 404 page so it’s impossible to use the search template as is.

---

## Post 6 by @system — 2022-02-01T22:26:37Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
