Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かが間違ったサブドメイン (存在しない) を入力し、このサブドメイン フレーズを別のページに渡す場合、.htaccess にリダイレクトを作成したいと考えています。
悪いサブドメイン:
ABC.example.org
リダイレクション:
my-page.com?validate=ABC
これどうやってするの?
サブドメインは DNS サーバーによって解決される必要があり、それが間違っている (存在しない) 場合、ブラウザーはサーバーが見つからないというエラーを表示します。では、ブラウザがサーバーに接続できず、.htaccess ファイルはどのように機能するのでしょうか?