← all tools

WordPress .htaccess

The standard Apache rewrite block, plus optional hardening rules.

Optional hardening
.htaccess — WordPress root

  

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.