I have come across an issue whilst using the Retour plugin for Craft similar to the question raised here but this is a redirect with a URL using the .htm extension and not .php.

Any ideas why this would not work?


1 Answer 1


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.

  • 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: github.com/nystudio107/nginx-craft/blob/master/nginx-partials/… … 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
    Commented Jan 17, 2018 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.