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

161
Views
Deshabilite htaccess auth para la ruta reescrita

Tengo el siguiente archivo .htaccess con autenticación básica y reescritura de URL. Necesito deshabilitar la autenticación básica para una ruta específica (por ejemplo, '/openaccess'), pero la reescritura ocurre primero, por lo que no puedo deshabilitar la autenticación con SetEnvIf. Lo más parecido que he encontrado es esta respuesta , pero no me funciona en Apache 2.4.34.

 RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule . /index.html [L] AuthType Basic AuthName "Restricted Content" AuthUserFile /path/to/.htpasswd Require valid-user
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Lo siguiente parece funcionar:

 RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule . /index.html [L] AuthType Basic AuthName "Restricted Content" AuthUserFile /path/to/.htpasswd SetEnvIf Request_URI /openaccess noauth=1 <RequireAny> Require env noauth Require env REDIRECT_noauth Require valid-user </RequireAny>
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!