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

250
Views
Agregar get-parameter a rewrite_rule en .htaccess no funciona

Estamos en camino de desarrollar un pequeño enrutador a través del .htaccess file . Ahora estamos tratando de pasar un parámetro de obtención en una regla de reescritura. El problema es que el parámetro get no se pasa con éxito.

Por ejemplo tenemos la siguiente url:

 https://example.com/shop-verifizierung_2c1c759546318feb3177d7d2a023400a.html

y la siguiente regla:

 RewriteRule ^(.*)-verifizierung_(.*).html$ index.php?seite=$1&webshopparameter=verifizierung&code=$2 [L,QSA]

Ese ejemplo funciona bien y los parámetros están configurados correctamente, pero ahora tenemos que agregar un token de parámetro de obtención adicional como ese:

 https://example.com/shop-verifizierung_2c1c759546318feb3177d7d2a023400a.html?token=6TT38831GN100844

Entonces expandimos rewrite_rule:

 RewriteRule ^(.*)-verifizierung_(.*).html?token=(.*)$ index.php?seite=$1&webshopparameter=verifizierung&code=$2&token=$3 [L,QSA] ^^^^^^^^^^^^ ^^^^^^^^^

Pero no funcionará como se esperaba. También intentamos usar {QUERY_STRING} pero el resultado es el mismo. ¿Dónde está el problema aquí? ¡Gracias por tu ayuda!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Con sus muestras mostradas, intente seguir las Reglas de htaccess. Puede usar la variable THE_REQUEST que será más adecuada para su condición actual aquí.

Además, asegúrese de borrar la memoria caché de su navegador antes de probar sus URL.

 RewriteEngine ON RewriteCond %{THE_REQUEST} \s/(.*?)-verifizierung_(.*?)\.html\?token=(\S+)\s [NC] RewriteRule ^ index.php?eite=%1&webshopparameter=verifizierung&code=%2&token=%3 [L,QSA]
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!