Created
December 22, 2019 18:14
-
-
Save konstantinmuenster/fb81c9026b9c4fbac17cbe010f88545f to your computer and use it in GitHub Desktop.
Example createRedirect for Netlify redirects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.createPages = ({ actions }) => { | |
const { createRedirect } = actions; | |
createRedirect({ | |
fromPath: "https://yoursubdomain.netlify.com/*", | |
toPath: "https://www.yourcustomdomain.com/:splat", | |
isPermanent: true, | |
force: true | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment