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

253
Vistas
.htaccess redirect and auth. header

I have an Angular 2 App hosted on my site. This app sends a jwt token in the authentication header.

So my services on server side can fetch this token.

So far this works, but if my route is 404 it should redirect to an /index.html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
</IfModule>

Im not really a .httaccess pro how can i catch this 404s

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

try to redirect not by your server but by angular router:

{path: '', component: HomeComponent},
 ....
 {path: '**', redirectTo: ''}//set this at the end of your routes
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