Pular para o conteúdo

⚙️ Gerador .htaccess

Simplesmente ative/desative as funcionalidades do Apache <code>.htaccess</code> usando as caixas de seleção para gerar em tempo real um arquivo <code>.htaccess</code> em nível de produção, incluindo redirecionamento HTTPS, HSTS, compressão gzip, cache, rejeição de arquivos confidenciais e permalinks do WordPress.

100% Free No signup Browser-only 5 languages Dark mode

🔒 Sobre Privacidade

🧩 Seleção de recursos

📄 .htaccess gerado


        
    

📖 Como usar

  1. 1
    Pick features
    Tick the checkboxes for the features you need (HTTPS redirect, HSTS, gzip, etc). The preview on the right updates live.
  2. 2
    Set your domain
    If you enable www canonicalization, set your domain (e.g. example.com). Not required for HTTPS-only redirects.
  3. 3
    Copy or download
    Use the buttons to copy to clipboard or download as a file. Always review before uploading.
  4. 4
    Upload to your server
    Place the file as .htaccess in your document root (public_html / htdocs / public). Back up any existing file first.

❓ Perguntas frequentes

Does .htaccess work on servers other than Apache?
No. .htaccess is Apache-only. LiteSpeed is compatible, but nginx needs a server block instead — try our nginx config generator.
What if I get a 500 error?
It can happen when a module is missing (e.g. no mod_brotli). The blocks are wrapped in IfModule so they should be safe — but if you still see 500, comment out one block at a time and check Apache error_log.
Does it work on shared hosting (Xserver / Sakura)?
Yes. Most shared hosts allow .htaccess including PHP version selection (AddHandler). Some require enabling mod_deflate / mod_expires from the control panel.
🐛 Você encontrou um problema com esta ferramenta?

Completamente gratuito e sem registro. Até as etapas de reprodução são suficientes. Os relatos recebidos chegam diretamente aos operadores e servem como referência para correções.

※ Para reproduzir problemas, informações do navegador (UA / tamanho de tela / idioma / URL) são enviadas automaticamente