Configuring any CDN to deliver only one file no matter what url has been requested

后端 未结 9 1813
日久生厌
日久生厌 2021-02-01 22:29

I am currently working on a new project where the entire page should be implemented in HTML5/JS working against an API/JSON. Since the entire application should only consist of

9条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-01 22:54

    Symlink your 404 page to the index page. That way, when a requested URL is not found on your web-content (about any link, as it appears in your case), the 404 page is served, which is in turn the index page itself.

    # ln -s index.html 404.html

提交回复
热议问题