oxwall の Web サイトに緩いページを作成しようとしています。
oxwall の標準の htaccess は次のようになります。
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} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
これで、ファイル file.php が Web サイトのルートに配置されました。このファイルに次のようにアクセスできるようにしたい: http://www.website.com/test
私はこれでrewriteruleからファイルを除外することができました:
RewriteCond %{REQUEST_URI} !/test.php
これで、次のようにファイルにアクセスできました: http://www.website.com/test.php
または、次のように拡張機能を削除できました。
RewriteRule ^test test.php
これを行うと、実際のインデックスが正しく読み込まれなくなります。
誰かが私が間違っていることを知っていますか。または、私が使用できる別のソリューションがありますか?
ありがとう、ロビン