以下のように、既存のディレクトリ/ blog(およびのようなもの/blog(/*)
)を取得して、存在しないディレクトリとともにindex.phpにリダイレクトしようとしています。
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
RewriteRule ^blog(.*)$ /index.php/$1 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule ^(.*)$ /index.php/$1 [L]
ErrorDocument 404 404.shtml
私はこれまでに約1000のことを試しましたが、何も機能しませんでした。