I don't know much anything about how hosting works, so if there's any additional info I should provide, please let me know.
The URL example.com
correctly forwards to www.example.com
. But example.com/file.pdf
and example.com/some-blog-post
also forwards to www.example.com
rather than www.example.com/file.pdf
and www.example.com/some-blog-post
as I'd like them to.
How can I set this up properly?
I'm hosting my personal website on GitHub pages, with a custom domain name through Namecheap. My current set up is the following:
Host Name IP Address / URL Record Type
@ http://www.example.com URL Redirect
www example.github.io CNAME (Alias)
And the GitHub repository "example.github.io
" contains a CNAME
file at the top level that just contains the text
www.example.com