.htaccess
で私はこれを書いた:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond $1 !^(index\.php|images|test|css|js|files|wiki|sitemap\.xml|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]
しかし、私には2つの問題があります:
- http://example.com/ajax/index.php http://example.com/index.php/ajax/index.phpに変換しない
- ホワイトリストに登録されたディレクトリのリストを見ることができます。これを防ぐにはどうすればよいですか?