自定义重定向路线

我正在尝试找出如何重定向任何404或403错误?我正在使用Heroku buildpack-static页面,这是我的配置

这是我想做的: 404重定向到404页面 403重定向到403页面 如果该页面不存在,请重定向到index.html页面

我尝试过下面的游戏,但是没有用

{
  "clean_urls": true,"redirects": {
    "/": {
      "url": "/test"
    },"404": {
      "url": "/404.html"
    },"403": {
      "url": "/403.html"
    }
  },"https_only": true
}

https://github.com/alecdibble/heroku-buildpack-static

hebeipl 回答:自定义重定向路线

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3071159.html

大家都在问