MSM プラグインを使用して、2 つの異なるドメイン名で 2 つの ExpressionEngine サイトを実行しています。サイト 1 にはすべてのシステム ファイルなどがあり、サイト 2 はサイト 1 のサブフォルダーにあります。私の質問は、サイト 2 の URL に index.php ファイルが含まれていなくても機能するようにするにはどうすればよいですか?
現在、サイト1のhtaccessフォルダーにこれがあり、サイト1はうまく機能しますが、サイト2は機能しません:
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
DirectoryIndex index.html index.php
# Redirect non-www urls to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# If 404s, "No Input File" or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)