Why Nginx Doesn’t Use .htaccess Files
Apache parses `.htaccess` dynamically on every single HTTP hit by walking directories, incurring disk I/O penalties. Nginx utilizes an event-driven architecture that compiles configuration into memory on startup. This delivers massive throughput but requires all rewrites inside `nginx.conf`.
Syntax Mapping Cheat Sheet
RewriteCond ... !-f + RewriteRule . /index.php→try_files $uri $uri/ /index.php;Redirect 301 /old /new→rewrite ^/old$ /new permanent;Deny from 192.168.1.1→deny 192.168.1.1;