ドメインtest.comとサブドメインがありますsub.test.com。
sub.test.comここで、URLをに書き換える必要があり、URL はとにtest.com/?state=sub似 sub.test.com/content/ています。test.com/content/?state=subsub.test.com/content/proceed/test.com/content/proceed/?state=sub
最初の URL のルールは次のように機能しました。
RewriteCond %{HTTP_HOST} !^www\.test\.com
RewriteCond %{HTTP_HOST} !^webmail\.test\.com
RewriteCond %{HTTP_HOST} !^m\.test\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.test\.com
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteCond %{REQUEST_URI} !robots.txt.*
RewriteRule ^$ http://www.test.com/?state=%1 [P]
これを行う方法はありますか?