I want www.username.github.io to redirect to username.github.io.
I have had a read through the documentation, and created a CNAME file to direct to www.username.github.io, but it is not working. (username.github.io is working)
I have ran a dig command to checkout the status (as advised in the documentation), and it is returning the simlar result for both www.username.github.io (not working) and username.github.io (working)
➜ ~ dig username.github.io
; <<>> DiG 9.8.3-P1 <<>> username.github.io.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2627
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;username.github.io. IN A
;; ANSWER SECTION:
username.github.io. 600 IN CNAME github.map.fastly.net.
github.map.fastly.net. 15 IN A 185.31.18.133
And for www.usernam.github.io
➜ ~ dig www.username.github.io
; <<>> DiG 9.8.3-P1 <<>> www.username.github.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31996
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.username.github.io. IN A
;; ANSWER SECTION:
www.username.github.io. 600 IN CNAME github.map.fastly.net.
github.map.fastly.net. 19 IN A 185.31.18.133
A difference I have noticed is www.username.github.io is returning
github.map.fastly.net. 19
But I don't know what this means.
Any help would be much appreciated!