WordPress .htaccess Generator

Generate standard rewrite rules plus optional security rules for .htaccess.

.htaccess Configuration

Permalink Structure

Security Rules

Generated .htaccess

Important: Always backup your existing .htaccess file before replacing it. Test thoroughly after deployment.

Features

  • Generate WordPress permalink rewrite rules
  • Add security hardening rules
  • Block xmlrpc.php to prevent DDoS attacks
  • Protect sensitive files and directories
  • Prevent PHP execution in uploads folder

How to Use

  1. Select the permalink structure (usually standard)
  2. Choose which security rules to include
  3. Click "Generate .htaccess" to create the file
  4. Backup your existing .htaccess file
  5. Copy and paste the generated code into your .htaccess
  6. Test your website to ensure everything works