これは私の現在の「.htaccess」ファイルです(ドキュメントルートに配置されています):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
私のプロジェクト構造は次のとおりです。
app/ <---- here i have all my php code
public/ <----- css/js/images
.htaccess
index.php <---- starting point
"/app/controller/controllerName.php" のようなアプリ ファイルへの直接アクセスを拒否したいのですが (代わりにルーターを使用してすべてのリクエストを処理します...)、どうすればこれを実現できますか? パブリック フォルダ ツリーに触れずに?