Home  >  Q&A  >  body text

Ask a nginx rewrite question, please answer, thank you

rewrite "^/(\d+)\.html$" /cc// permanent;

This nginx pseudo-static rule, when accessing www.xx.com/404.html, that is, the 404 page in the root directory will jump to /cc/404/

How to modify and resolve the conflict between the content page and the 404 page

大家讲道理大家讲道理2714 days ago438

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:12:14

    error_page 404 /404.html;
    It should be possible to uniformly configure the 404 page in this way.

    reply
    0
  • Cancelreply