Ask a nginx rewrite question, please answer, thank you
大家讲道理
大家讲道理 2017-05-16 17:10:14
0
1
414
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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (1)
伊谢尔伦

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!