<p>Retour only works if the 404 actually is handled by Craft; my guess is that your Nginx config somehow is not passing along the 404 to Craft.</p>

CC BY-SA 3.0
2018-01-17T10:57:48.350Z
Just in case it helps anyone else, the problem was this directive in our nginx expires partial where we had a line for static caching of htm(l) files. This actually came from an older version of Andrew’s nginx config here: https://github.com/nystudio107/nginx-craft/blob/master/nginx-partials/expires.conf … which has since changed.

`# cache.appcache, your document html and data
location ~* \.(?:manifest|appcache|html|json)$ {
    expires -1;
    access_log /var/log/nginx/static.log;
}`
user7868
CC BY-SA 3.0
2018-01-17T06:57:25.500Z
2018-01-17T06:57:25.500Z
andrew.welch
<p>I have come across an issue whilst using the <a href="https://github.com/nystudio107/retour" rel="nofollow noreferrer">Retour plugin</a> for Craft similar to the question raised <a href="https://craftcms.stackexchange.com/questions/22006/redirects-with-craft-and-nginx">here</a> but this is a redirect with a URL using the .htm extension and not .php.</p>

<p>Any ideas why this would not work?</p>

<p>Thanks </p>

<nginx><plugin-retour>
Retour Redirects with Craft and nginx
# Retour Redirects with Craft and nginx

(Asked by: username_0 on 2018-01-15)

I have come across an issue whilst using the [Retour plugin](https://github.com/nystudio107/retour) for Craft similar to the question raised [here](https://craftcms.stackexchange.com/questions/22006/redirects-with-craft-and-nginx) but this is a redirect with a URL using the .htm extension and not .php.

Any ideas why this would not work?

Thanks

**Tags:** nginx, plugin-retour

---

## 1 answers

### Answer by username_1 on 2018-01-17. Score: 1 | Accepted answer

Retour only works if the 404 actually is handled by Craft; my guess is that your Nginx config somehow is not passing along the 404 to Craft.

> **Comments:**
> **username_0**: Just in case it helps anyone else, the problem was this directive in our nginx expires partial where we had a line for static caching of htm(l) files. This actually came from an older version of Andrew’s nginx config here: https://github.com/nystudio107/nginx-craft/blob/master/nginx-partials/expires.conf … which has since changed.  `# cache.appcache, your document html and data location ~* \.(?:manifest|appcache|html|json)$ {     expires -1;     access_log /var/log/nginx/static.log; }`  

---

