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

475
Views
Why Xampp server allow open not existing path

I have a problem with xampp etc. When I typing in URL address, for example, http://localhost/project/index.php/whatever.php server opened index.php with crashed style instead Not Found The requested URL was not found on this server or something like that because /whatever.php does not exist in the project.

In console showed: Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/project/index.php/style/style.css".

How I can prevent the open not existing path from my project ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

All versions of Apache allow this, it's normal... To solve your issue, please, edit your httpd.conf and where you have your VirtualHost config add this line:

AcceptPathInfo Off

Like here:

<VirtualHost localhost:80>
  ServerName localhost:80
  ServerAlias localhost
  ErrorLog "${SRVROOT}/logs/localhost-error.log"
  TransferLog "${SRVROOT}/logs/localhost-access.log"
  DocumentRoot "D:/Web/www"
    <Directory "D:/Web/www">
      Require all granted
      Options Indexes FollowSymLinks Includes ExecCGI
      AcceptPathInfo Off
      AllowOverride All
      <IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
      </IfModule>
    </Directory>
</VirtualHost>

If not enough add this line to your .htaccess

################################################################################
######################### Remove /index.php/ from URLs #########################
################################################################################
RedirectMatch 301 ^/index\.php(/.*) $1

Hope this helps.

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!