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

209
Views
Proyecto Yii2+ vue, las subpáginas se redirigen desde 404

Tengo el proyecto yii2+vue y funciona bien, excepto que las URL secundarias se redireccionan primero desde 404. Mi archivo htaccess tiene el siguiente aspecto:

 RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

Enrutador Vue:

 router.beforeEach((to, from, next) => { store.dispatch('auth/check') .then(res => { console.log(res); if (to.path == '/login' && res.status) { next('/') } else if (!to.meta.guest && !res.status) { next('/login') } else { next() } }, () => { }) })

Cuando accedo a cualquier subpágina, como http://dominio/subpágina , muestra primero la página 404 de apache... después de eso, se redirige a la página de contenido administrada por vue. Por favor ayuda

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

es apache2 + yii problema no vue js problema enrutador. verifique estoEliminar index.php de la URL porque 404 en yii

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!