Último dia de Halloween: +30% em uma recargaO bônus vale uma única vez: recarregue de uma vez todo o valor de que precisa. Dê uma olhada no seu painel: há surpresas escondidas. 00h00min00s Receber o bônus
Utilitários

Gerador de .htaccess

Gere regras .htaccess do Apache prontas para uso.

Selecionar regras

Fatos principais

.htaccess is an Apache configuration file for per-directory rules. Tick the rules you need (HTTPS, www, GZIP, caching, security headers, CORS and more) and copy the result. These are templates for Apache, not Nginx; back up your old file before deploying, because a mistake in .htaccess can cause a 500 error.

Preço
Grátis
Cadastro
Não é necessário
Processamento
On our server: the ticked boxes are sent by POST and the server assembles ready rule templates into text; nothing is stored
Entrada
Checkboxes for 12 ready Apache rules
Limites
No sign-up and no limits; ready templates only, you cannot enter your own URLs or conditions
Resultado
The .htaccess text in a read-only field headed “Generated by PromoPilot” with a Copy button; paste it into the .htaccess file in the site root
Última atualização

Gerador de .htaccess

Crie um .htaccess para Apache a partir de 12 regras prontas: redirecionamentos para HTTPS e www, cache, GZIP, cabeçalhos de segurança, sem listagem de diretórios, proteção contra hotlink, CORS, bloqueio de bots de SEO. Não há redirecionamentos personalizados, senhas nem bloqueio de IP.

Redirecionamentos permanentes (301) para HTTPS e para www / sem www
Regras de cache
Sem listagem de diretórios e com proteção contra hotlink de imagens
Bloqueio de crawlers de SEO por User-Agent
Forçar redirecionamento HTTPS
Compressão Gzip/Deflate

Como usar

  1. Escolha as regras desejadas: redirecionamento HTTPS, compressão GZIP, cache e outras
  2. Configure os parâmetros de cada regra de acordo com os requisitos do site
  3. Copie o código gerado e cole no arquivo .htaccess

FAQ

It is an Apache configuration file that applies to the directory it sits in and its subfolders. It is where you set redirects, compression, caching, headers and access restrictions.

Tick “Force HTTPS”: the rule redirects http to https with a 301. Before enabling it make sure the certificate is installed and the site opens over https.

In the site root (next to index) as .htaccess, or append the text to an existing file. Keep a backup: a syntax error causes a 500 error.

No. Nginx does not read .htaccess; its rules go into the server configuration. Our templates are for Apache only.

Not with this generator: it has only 12 ready templates. Password protection (.htpasswd) and custom 301 redirects must be set up another way.

PromoPilot vs. alternativas: comparação

Comparamos apenas o que está confirmado nas páginas de cada serviço. Onde não conseguimos confirmar um dado, a célula mostra "—".

Parâmetro PromoPilot htaccessredirect.net htaccess tester (madewithlove)
Ready templates (HTTPS, www, GZIP, caching) ✓ ✓ www rewrite, JS/CSS/image caching, hotlink prevention, custom errors, bot blocking ✗
Password protection for a file or folder ✗ ✓ file password protection and an htpasswd generator ✗
Custom 301 redirects ✗ ✓ 301 redirects for a file or directory ✗
Testing rules against a URL ✗ — ✓ paste rules and a URL and see how Apache would rewrite it

Role a tabela para os lados

Onde somos mais fracos: only 12 fixed templates: no passwords or .htpasswd, no custom redirects or result testing, and you have to insert the domain into the hotlinking rule yourself.

Quando escolher o PromoPilot: When you want typical Apache rules fast without digging through documentation. For custom 301 redirects, password protection and testing rules against a URL you need other tools.

Verificado em: . "—" significa que não foi confirmado na página oficial; condições e preços mudam, então confira os sites dos próprios serviços.

Promoção com links em cascata para o seu site Bônus de $30Backlinks 5→50→5000 em mais de 100 plataformas. A partir de $30 para começar, mais um bônus de $30 para novos usuários.