# [Redirect Feature] Quote or escape URL patterns containing spaces

**Project:** Sites | **Board:** Planned | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/1592-redirect-feature-quote-or-escape-url-patterns-containing-spaces

---

Using the redirect feature does not work for URLs with spaces in them. Only when manually embedding the regex in quotes in the nginx redirect config file, the redirect works.

e.g. redirecting from `/an example page` to `/example` does not work. Trying `/an%20example%20page` does not work either.

Looking at the redirect nginx config it contains:
```nginx
rewrite ^/an example page$ /example permanent;
```

while it should be:
```nginx
rewrite "^/an example page$" /example permanent;
```

Adding the quotes manually fixes the redirect.

On another note, it should be possible to edit redirects and not only delete them.


