Hi, first off, love the service! Getting my hands dirty with it all of the time and learning a lot
I am however having trouble with some redirects
rules that aren’t behaving as I would expect them to…
Expected behaviour:
- /client-portal.html redirects to http://www.bbc.co.uk/
- /client-portal redirects BBC Sport - Scores, Fixtures, News - Live Sport
Actual behaviour:
Page Not Found
Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.
« Back to our site
Neither of the local paths (/client-portal.html and /client-portal) exist. I actually want both of these virtual paths to redirect to the same endpoint (eg. http://www.bbc.co.uk) however for the purpose of trying to understand the current setup, I’ve explicitly defined different endpoints.
My complete netlify.toml file is included below. The site in question is https://zen-saha-ec1bd1.netlify.app. Any help is much appreciated.
Thanks in advance
[build]
base = "/"
publish = "public/"
command = "npm run deploy"
## prettify the page links
[[redirects]]
from = "/tob.html"
to = "/tob"
status = 302
force = true
[[redirects]]
from = "/privacy.html"
to = "/privacy"
status = 302
force = true
[[redirects]]
from = "/cookies.html"
to = "/cookies"
status = 301
force = true
## attempting to redirect from /client-portal.html
## (and / or /client-portal) to the same external site
## but I've included different endpoints to see which
## if any were successful
[[redirects]]
from = "/client-portal.html"
to = "https://www.bbc.co.uk"
status = 301
force = true
[[redirects]]
from = "/client-portal"
to = "https://www.bbc.co.uk/sport"
status = 302
force = true