ユーザーをexample.com/またはwww.example.comからnew.example.comにリダイレクトするにはどうすればよいですか。
しかし、私は次のような特定のURLをリダイレクトしたくありません:
www.example.com/test.php
api.example.com/testo.php
www.example.com/forum/index.php
やった:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ http://new.example.com/$1 [R=301,L]
しかし、URLのルールは何ですか?