Home  >  Q&A  >  body text

How to specify a link in nginx to jump to other pages

For example, this link /index.php?route=product/category&path= , I just want users who visit this link to jump to the /abc.html page

How to write this? nginx

typechotypecho2669 days ago1208

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-06-28 09:30:48

    Try this

    if ( $request_uri = "/index.php?route=product/category&path=" ){
        return 301  /abc.html;
    }

    reply
    0
  • Cancelreply