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

386
Views
Redirigir www.example.com/some-path/example/ a www.example.com/some-path/?ABC=123

Estoy tratando de redirigir una ruta como esta: de www.example.com/some-path/sg/ a www.example.com/some-path/

Pero necesito alguna forma de identificar este tráfico como un parámetro, idealmente: www.example.com/some-path/?ls=sg . ¿Es esto posible usando htaccess/mod_rewrite?

Lo que he probado es:

 RedirectMatch 301 /sg/(.*) /$1?ls=SG7
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Con sus intentos mostrados, las muestras intentan seguir el archivo de Reglas de htaccess. Asegúrese de colocarlos en la parte superior de su archivo de reglas htaccess.

Asegúrese de borrar la memoria caché de su navegador antes de probar sus URL.

 RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ##To look for sg here. RewriteCond %{THE_REQUEST} sg [NC] RewriteRule ^(.*)/(.*)/?$ /$1/?ls=$2 [R=301,NE,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!