In some cases, sites deployed to Netlify will automatically perform 301 redirects from paths without a trailing slash to paths with a trailing slash, e.g.:
https://.netlify.app/page-2
https://.netlify.app/page-2/
To prevent this redirect, you will need to update your Asset Optimization settings in Netlify to the following settings:
- Check 'Disable asset optimization'
- Disable Pretty URLs
- Enable the remainder of the options
Comments
0 comments
Please sign in to leave a comment.