heroku 独自ドメイン設定
公式サイト devcenter.heroku.com
//herokuへログインする heroku login //独自ドメイン設定 $ heroku domains:add thxxxixxxx.com › Warning: heroku update available from 7.22.9 to 7.26.2. Adding thainosuke.com to ⬢ intense-crag-88861... done ▸ Configure your app's DNS provider to point to the DNS Target //これをエイリアスに追加する ムームードメインにて ▸ solid-xxxxx-io05skaehxxxxmxzn6syvrcm7kf.herokudns.com. ▸ For help, see https://devcenter.heroku.com/articles/custom-domains The domain thainosuke.com has been enqueued for addition ▸ Run heroku domains:wait 'thainosuke.com' to wait for ▸ completion
サブドメイン設定
これはムームードメインで設定
#### サブドメインに www と入力して、同上のドメインをCNAMEで指定する
ここを見るとwwwをCNAMEで追加している。 これでリダイレクトされる。 これはDNS側の設定となる。 以上