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

414
Views
Reescritura de URL con .htaccess en php personalizado (xampp) en Windows 10

Quiero volver a escribir la siguiente URL desde:

 www.phcc.com/reports/caseFullDtlByCaseSno.php?case_sno=1 To http://www.phcc.com/reports/1/caseFullDtlByCaseSno.html

Para esto, he escrito el siguiente archivo .htaccess dentro del directorio de informes, que es el subdirectorio de la raíz del sitio web:

 RewriteEngine on RewriteBase /reports/ RewriteRule ^(.*)/(\d+)\.php $1=case_sno&$2.html [NL,L] RewriteRule ^(.*)/(\d+)\.html $1=case_sno&$2.php [L]

pero no completa la solicitud como lo necesito. ¿Qué tengo que hacer?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Intente con lo siguiente, supongo que los archivos html no existen.

 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([\d]+)/([\w-]+)\.html$ $2.php?case_sno=$1 [L]
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!