Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

121
Vistas
apache: redirect only when url matches without query

I have this redirect

 RewriteRule ^on-the-yard/detail/?$ /on-the-yard/ [R=302,NE,L]

and I would like to use it ONLY when the exact URL matches ^on-the-yard/detail/?$, but the problem I'm having is that the URL is also redirecting when there are queries attached.

E.g. on-the-yard/detail?param=1&param2=test is redirecting to /on-the-yard/

Any advice is helpful Thanks!

8 months ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos