Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

245
Vistas
How to redirect *.htm *,htm *,html to *.html in .htaccess

I need to redirect *.htm *,htm *,html to *.html, but when page is *.html leave same URL *.html.

I have this rule, but there's problem -> redirect loop. What should I change?

RewriteEngine On
RewriteRule ^(.*)(\.|,)htm(l?)$ $1.html [R=301]
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

As CBroe rightly commented that issue is with your pattern that also matches .html hence will cause a redirect loop.

You can fix it by using:

RewriteRule ^(.+)(?:\.htm|,html?)$ $1.html [R=301,L,NC,NE]

PS: This assumes RewriteBase directive has been used before.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda