LoginSignup
0
0

More than 5 years have passed since last update.

hosts設定したurlをブラウザ で叩いたらhttpsにリダイレクトされてアカン

Last updated at Posted at 2019-01-25

ローカル環境です。

経験1

.devにしたらhttpsにリダイレクトされて、なんでー?ってなった。
理由は、chromeの仕様で、.dev .app はhttpsにリダイレクトされるらしい。
.localに直して解決しました。

この方が詳しいです。
https://qiita.com/lara_bell/items/f7f3c5189530090229ed

経験2

上の経験を生かし.localで設定したのに、リダレクトくらう
原因は、gitでクローンしたシステムの.htaccessでリダイレクト設定されました。
まだ初心者なのでそこまで気が回りません。。。

疎通確認

hostsの設定がちゃんとできてるか確認するにはpingコマンドを使うといいのかな?

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0