Redirect https://example.com to https://www.example.com: Namecheap and Heroku

前端 未结 1 1968
北海茫月
北海茫月 2021-02-05 16:36

I\'m trying to redirect all requests to:

https://example.com
http://www.example.com
http://example.com

to https://www.example.com.

相关标签:
1条回答
  • 2021-02-05 17:16

    For anyone that is still having this issue, I found a solution with Namecheap for redirecting the root domain to a subdomain.

    1. I pointed my subdomain to my website location (Github pages in this case)
    2. I created a CNAME record for @ host and made its value my subdomain

    This redirects my root domain to my subdomain.

    0 讨论(0)
提交回复
热议问题