next.js - 重定向到 nextjs 中的规范 url
问题描述
我想将所有流量从 重定向https://example.com/:path*
到https://www.example.com:/path*
。
有没有办法在 nextjs 中通过重定向或重写来做到这一点?
解决方案
推荐阅读
- python - 如何使用 Python 创建一个函数,该函数将在字典中为数据表中的每一行返回一个值?
- ruby-on-rails - Rails:在不同的控制器中调用模型中的方法
- .net - 尽管使用了 Overridable/Overrides,但实现 ToString 并不会覆盖原始 ToString 方法。我想念什么?
- javascript - 如何向 Vue 导入其组件块的路径添加前缀?
- javascript - UI 焦点错误,选项卡后焦点跳回上次编辑的文本框
- html - 如何使用省略号和 Angular-FlexLayout 缩短文本?
- php - 在更新查询中获取 lastInsertId 的问题
- android - 向 Gson 注册此类型的 InstanceCreator 可能会解决此问题
- ios - UICollectionView 水平对齐滚动第一个单元格中心对齐第一次使用 Swift 时不完全放置中心位置
- php - Laravel 应用程序的 Azure 身份验证中间件