次の .htaccess ファイルがあります。
DirectoryIndex index.html
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
#RewriteCond %{REQUEST_URI} .*/http-bind
#RewriteRule (.*) /http-bind [L]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/index\.html
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
.htaccess の他のすべてを以前のように機能させたい: to で指定されたものを除くすべてのリクエストをリダイレクトし!ますindex.php。ただし、index.htmlサイトを初めてロードするときにロードする必要があり、index.phpその後もロードし続けます。
DirectoryIndex index.htmlそのため、最初に行を追加し、次に行RewriteCond %{REQUEST_URI} !/index\.htmlを追加http://url.comしましhttp://url.com/homepageたindex.php.
ただし、これは機能しません。私が使用しているソフトウェアはOxwallです。サイトは単に最初の行を無視し、何があっても index.php をロードし続けます。これを解決するにはどうすればよいですか? ありがとう。