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

160
Views
Necesito en apache2.conf un <Directorio> que oculte las extensiones .php

Estoy usando una máquina virtual para emular un servidor apache (linux debian) y no puedo ocultar la extensión de archivo .php en la URL del sitio web.

Estoy modificando apache2.conf en /etc/apache2/apache.conf en lugar de agregar un archivo .htaccess porque Apache sugiere hacerlo.

actualmente tengo:

 <Directory /var/www/html> AllowOverride All Require all granted RewriteEngine On Options FollowSymLinks RewriteCond %{REQUEST_FILENAME}.php !-f RewriteRule (.*) $1.php [L] </Directory>
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Le sugiero que use .htaccess en los directorios donde desea ejecutar archivos php sin extensión.


Depende de la versión de su motor PHP, agregue las siguientes líneas:

PHP 7.0

 <FilesMatch '^[^.]+$'> SetHandler application/x-httpd-php70 </FilesMatch>

PHP 7.0 Único

 <FilesMatch '^[^.]+$'> SetHandler application/x-httpd-php70s </FilesMatch>

PHP 7.0 FastCGI

 <FilesMatch '^[^.]+$'> SetHandler fcgid70-script </FilesMatch>

No olvide eliminar la extensión .php de dichos archivos en esos directorios.

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!