<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  # 禁止 uploads 目录执行任何脚本（Apache 部署的纵深防御）
  RewriteRule ^uploads/.*\.(php|php[0-9]|phtml|pht|phar|inc)$ - [F,L,NC]

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
