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 issue with RewriteOptions InheritBefore

I have got two htaccess:

api/public/.htaccess

RewriteRule . index.php

api/public/cron/web/.htaccess

RewriteEngine On
RewriteOptions InheritBefore

I set my vhost for cron:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName cron.api.local
    ServerAlias www.cron.api.local
    DocumentRoot /var/www/api/public/cron/web
    ErrorLog ${APACHE_LOG_DIR}/api_cron_error.log
    CustomLog ${APACHE_LOG_DIR}/api_cron_access.log combined
    <Directory "/var/www/api/public/cron/web">
        Options Indexes FollowSymLinks MultiViews
        Require all granted
        AllowOverride All
        Allow from All
    </Directory>
</VirtualHost>

Url http://cron.api.local/up returns 404 status but when i replace RewriteOptions InheritBefore with RewriteRule . index.php then it works. What is wrong?

I use apache 2.4.18 and ubuntu 16.04.

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

0

To fix this issue follow this:

sudo nano /etc/apache2/apache2.conf

Find:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted </Directory>

Replace With:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Exit and save and restart apache with command

sudo systemctl restart apache2

Reverence: Apache mod_rewrite is enable on server but not working?

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