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

194
Views
Trying to load a sub route server returns 404 angularjs

I'm trying to access angularjs route without #, by writing $locationProvider.html5Mode({ enabled: true, requireBase: false }); in app.js and base href="/" in index.html is working fine for root url not for sub route.

Refreshing sub route without # it's throwing following error "page can’t be found i.e. HTTP ERROR 404".

I also written .htaccess code in angularjs root directory, also tried to write in apache2 000-default.conf but it's not work.

Someone please help me out of this.

over 4 years ago · Santiago Trujillo
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!