I’ve read the doc for how to use redirects and rewrites for a netlify site but when I use it for my website, it just says that this page cannot be reached or isn’t available.
- I know its up and running because the status page for netlify says all good/clear
- My code for my website shouldn’t affect how it loads because it validated successfully and I checked it for any errors that might occur during the page load and cache
For example when I use this in my _redirects or netlify.toml file
https://example.netlify.com https://example.netlify.com/ 301
[[redirects]]
from = “https://example.netlify.com”
to = “https://example.netlify.com/”
status = 301
force = false
It should have the trailing slash added to the end of the address, but instead gives me an error in my browser that this site can’t be reached or isn’t available.
Basically all i’m trying to accomplish is to make my site have the trailing slash at the end of the URL like this
https://example.netlify.com/
(The main reason for this post is because I’m using a SEO checker for my website and its saying that
https://example.netlify.com
isn’t equal to the canonical URL.
My code would be setup like this