9
私は私の.htaccessファイルに次のような構造を作成したい:Apache htaccessで書き直しする方法はありますか?
If (SITE A DOMAIN or SITE A SUBDOMAIN) {
Rewrite this specific way -> /index.php/$1
} else {
Rewrite this specific way -> /directory/www/index.php/$1
}
私は以下の私の現在のコードを持っているが、それは約泣き言私のApacheのエラーログと500Sを投げています:[[誤差]
client :: 1] mod_rewrite:内部リダイレクトの最大数に達しました。構成エラーが発生すると想定します。リファラー:
私は間違っているのですか?ありがとう!
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|blog)
RewriteCond %{HTTP_HOST} ^subdomain\.example\.com$ [NC,OR]
RewriteCond %{HTTP_HOST}^example\.com$
RewriteRule .? - [S=1]
RewriteRule ^(.*)$ /directory/www/index.php/$1 [L]
RewriteRule .? - [S=1]
RewriteRule ^(.*)$ /index.php/$1 [L]
ありがとうございました! –