12/09/20 15:39:55.95 4tPnOIDz
現在、Apacheの設定ファイルにて、/hogehoge/(.*).htmlのページに来たものは
URLリンク(example.com)にジャンプさせてます。
設定ファイルは下記の通りです。
RewriteRule ^/hogehoge/(.*).html URLリンク(example.com)
この条件に加え、
フォルダ名の最後に「/a/」があった場合、/a/を消してa.example.comドメインにジャンプ、
フォルダ名の最後に「/b/」があった場合、/b/を消してx.example.comドメインにジャンプ
したいと思っているのですが、うまくいきません。
例)
/hogehoge/a/saitama.html →URLリンク(a.example.com)
/hogehoge/urawa/a/omiya.html →URLリンク(a.example.com)
/hogehoge/b/yono.html →URLリンク(x.example.com)
/hogehoge/saitama/a/b/chichibu.html →URLリンク(x.example.com)
これは従来通りの動き
/hogehoge/a/urawa/kumagaya.html →URLリンク(example.com)
/hogehoge/kawaguchi/b/kawagoe/b.html →URLリンク(example.com)
どのようにやれば、うまくいくかご教授いただければと思います。
環境:CentOS5 Apache2.2.3