Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
Mask URL with Selectors Apache

I received a request asking to mask an url like this

commercial.com/en/test/page1 to commercial.com/en/test.page1 (as using selectos)

I tried with the next: RewriteRule "^/en/test.page1" "https://${CommercialName}/en/test/page1" [L,P]

In that case this does not work by sendming me the next server message:

Bad Request

Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit.

But if I change my rule to this works: RewriteRule "^/en/test.pagetest" "https://${CommercialName}/en/test/page1" [L,P]

But then I add another rule and it shows me the same

RewriteRule "^/en/test.pagetest" "https://${CommercialName}/en/test/page1" [L,P] RewriteRule "^/en/test.page2test" "https://${CommercialName}/en/test/page2" [L,P]

Do anyone knows why this error is caused?

PS:

  • 1 I already tried to chage P into PT
    1. Apache 2.4
    2. Working with AEM as CMS
    3. I already tried using RewriteCond as RewriteCond "%{REQUEST_URI}" "^/en/test.page2test"
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda