Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
.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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!