I have added a redirect in my site
[[redirects]]
from = “/angular/no-provider-for-clinet/”
to = “/angular/no-provider-for-client/”
status = 301
Site name is angularjswiki.com
but it seems to be not working redirecting to 404 instead
I have added a redirect in my site
[[redirects]]
from = “/angular/no-provider-for-clinet/”
to = “/angular/no-provider-for-client/”
status = 301
Site name is angularjswiki.com
but it seems to be not working redirecting to 404 instead
Hi, @arungudelli. I get the 301 redirect when I test:
$ curl -svo /dev/null https://www.angularjswiki.com/angular/no-provider-for-clinet/ 2>&1 | egrep '< '
< HTTP/2 301
< cache-control: public, max-age=0, must-revalidate
< content-length: 48
< content-type: text/plain; charset=utf-8
< date: Wed, 23 Sep 2020 07:28:53 GMT
< location: /angular/no-provider-for-client/
< age: 0
< server: Netlify
< x-nf-request-id: 6f652e4b-4b5e-4d65-85db-297c633cac7c-2553446
<
Did you resolve the issue already? If not, what this the x-nf-request-id
header for an incorrect response? (For example, the value is 6f652e4b-4b5e-4d65-85db-297c633cac7c-2553446
in the curl
response above.
There more information about this header here:
If that header isn’t available for any reason, please send the information it replaces (or as many of these details as possible). Those details are:
age: 0
cache-control: public, max-age=0, must-revalidate
content-encoding: br
content-type: text/html; charset=utf-8
date: Wed, 23 Sep 2020 13:42:24 GMT
etag: 1554141577-ssl-df
server: Netlify
status: 404
vary: Accept-Encoding
x-nf-request-id: b6ed9354-7c9f-44cf-b1d8-43437008e976-68937729
Timezone : +5.30 India
Hey there!
Lots going on here.
You don’t have a page in your deploy at https://www.angularjswiki.com/angular/no-provider-for-client/ hence why you are receiving a 404 error. The 301 rule works as expected.
You need to check what the page exists.
It used to… then i identified a spelling mistake “clinet” instead of “client”… So if i publish it again… it should work rite?
It should, if you have, however you have a service worker installed on your site which makes it much harder to debug. You should consider whether this is actually helping or hindering you.
Thank you for your suggestion.
Yes I do agree with that. I have to think about it.