WordPress .htaccess
The standard Apache rewrite block, plus optional hardening rules.
.htaccess — WordPress root
wp-content/uploads/.htaccess — separate file
WordPress rewrites everything between # BEGIN WordPress and # END WordPress, so hardening rules are placed above that block. Back up the current file first. On nginx, LiteSpeed without .htaccess support, or IIS, these rules are ignored — the equivalents belong in the server configuration.