Hi @fool , following your instructions I have tried the below and still don’t seem to have any luck.
- netlify.toml in the master branch of my repository has the following entries
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
[[redirects]]
from = "https://secondtestbranch.coronacorps.com"
to = "https://heuristic-booth-a831e4.netlify.com/posts/a-post.html"
status = 200
- CNAME records created:
Name
secondtestbranch.coronacorps.com
TTL
3600 seconds
Type
CNAME
Value
heuristic-booth-a831e4.netlify.com
-
No branch is mapped to secondtestbranch.coronacorps.com
-
dig
secondtestbranch.coronacorps.com outputs the following:
; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> secondtestbranch.coronacorps.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52400
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;secondtestbranch.coronacorps.com. IN A
;; ANSWER SECTION:
secondtestbranch.coronacorps.com. 378 IN CNAME heuristic-booth-a831e4.netlify.com.
heuristic-booth-a831e4.netlify.com. 20 IN A 142.93.108.123
;; Query time: 60 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Thu Apr 09 00:46:00 BST 2020
;; MSG SIZE rcvd: 122
-
nslookup
secondtestbranch.coronacorps.com:
Server: Hitronhub.home
Address: 192.168.0.1
Non-authoritative answer:
Name: heuristic-booth-a831e4.netlify.com
Addresses: 2a03:b0c0:3:d0::d24:5001
68.183.215.91
Aliases: secondtestbranch.coronacorps.com
Running a request from a web browser gives a Not Found response
curl -v https://secondtestbranch.coronacorps.com results in:
TCP_NODELAY set
Connected to secondtestbranch.coronacorps.com (134.209.226.211) port 443 (#0)
Server certificate: subject: CN=*.coronacorps.com start date: Mar 18 10:22:28 2020 GMT expire date: Jun 16 10:22:28 2020 GMT subjectAltName: host "secondtestbranch.coronacorps.com" matched cert's "*.coronacorps.com" issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3 SSL certificate verify ok. GET / HTTP/2 Host: secondtestbranch.coronacorps.com User-Agent: curl/7.58.0 > Accept: */* > < HTTP/2 404 < cache-control: max-age=30, public < content-length: 9 < content-type: text/plain; charset=utf-8 < date: Wed, 08 Apr 2020 23:55:45 GMT < strict-transport-security: max-age=31536000 < x-content-type-options: nosniff < x-frame-options: ALLOWALL < x-request-id: 34cb65a4-f9a6-4735-b75a-4275413d3d51
< x-runtime: 0.007079 < age: 0 < server: Netlify < x-nf-request-id: 64dd08f6-885c-4ef2-a827-50fc952f3f88-12083334 < * (304) (IN), TLS Unknown, Unknown (23): * Connection #0 to host secondtestbranch.coronacorps.com left intact
This is a 404 response (formatting difficult)
The 404 response has no content, rather than being the netlify default 404 page
I have also run a ‘clear cache and redeploy’ deployment of the master branch.
Build logs show 2 redirect rules in the last deployment.
Please advise on how to get this working?