私はいくつかのURLを書き直した記事を読んだが、何も私を助けなかった。
基本的にウェブサイトには「.html」( http://www.domain.com/page.html
)で終わるページがあり、他のサブドメインも保持しています( http: //www.domain.com/subdomain.com
)
So I'm trying to get this: http://www.domain.com/subdomain.com
to be redirect to: /www/subdomain.com/index.php
私はこれを試しましたが、それに何か問題があります:
RewriteCond %{QUERY_STRING} !\.html$
RewriteCond %{QUERY_STRING} ^([^/.]+)\.([^/.]+)/?$
RewriteRule /www/%1.%2/index.php [L]
私はRewriteCondの使い方を誤解していると思いますが、それを正しく行う方法を見つけることはできません。
私は何が欠けていますか?
ありがとう、
ロブ