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

219
Views
Ignorar una carpeta en particular en htaccess

Tengo problemas con mi .htaccess . El .htaccess funciona, pero causa un problema con la carpeta de administración. ¿Sería posible excluir esa carpeta específica de este .htaccess ? Aquí está mi .htaccess . Está fuera de la carpeta de administración.

 Options -MultiViews ErrorDocument 404 http://localhost/blo-prt/err.php RewriteEngine On RewriteCond %{THE_REQUEST} ^[AZ]{3,}\s([^.]+)\.php [NC] RewriteRule ^ %1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*?)/?$ $1.php [L,QSA] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^blo/([^/\.]+)?$ blo-det.php?postlist=$1 [L,QSA] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^category/blo/([^/\.]+)?$ blo-prior.php?bloglist=$1 [L,QSA] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^tep/([^/\.]+)?$ temp-det.php?telist=$1 [L,QSA] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^category/tep/([^/\.]+)?$ temp-of-prior.php?tlist=$1 [L,QSA]
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Deberías agregar esto a tus RewriteConds:

 # if request is not for the /admin/ RewriteCond %{REQUEST_URI} !^/admin/ [NC]

Personalmente, uso este código para eliminar la extensión .php:

 # enable url rewriting RewriteEngine On # remove .php RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC] RewriteRule ^ /%1 [NC,L,R] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [NC,L]

Además, solo debe escribir RewriteEngineOn solo una vez en la parte superior del archivo.

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!