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

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

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 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!