Amazon s3 301重定向盖茨比S3云端

Amazon s3 301重定向盖茨比S3云端,amazon-s3,redirect,amazon-cloudfront,Amazon S3,Redirect,Amazon Cloudfront,我正在尝试用我的Gatsby和S3+Cloudfront应用301重定向,但到目前为止我没有成功, 我有大约210个重定向url,我将在下面列出我的配置 createRedirect({ fromPath: `/old-url`, toPath: `/new-url`, isPermanent: true, redirectInBrowser: true, }); { resolve: 'gatsby-plugin-s3', options: { bucketName: pr

我正在尝试用我的Gatsby和S3+Cloudfront应用301重定向,但到目前为止我没有成功, 我有大约210个重定向url,我将在下面列出我的配置

 createRedirect({
  fromPath: `/old-url`,
  toPath: `/new-url`,
  isPermanent: true,
  redirectInBrowser: true,
});

{
resolve: 'gatsby-plugin-s3',
options: {
bucketName: process.env.S3_BUCKET,
region: 'eu-west-1',
protocol: 'https',
hostname: 'stage-mydomain.de',
bucketPrefix: 'de',
generateRoutingRules: true,
generateRedirectObjectsForPermanentRedirects: true,
 }
}
注意,我的配置中没有与重定向相关的插件, 我想实现的是纯301服务器端重定向,我不想要JS重定向和元重定向,因为 Js将无法在禁用Js的情况下工作,Meta不利于SEO

有人能帮忙吗? 谢谢