search

Home  >  Q&A  >  body text

nginx rewrite 301 redirects to the specified page

How to allow access to https://www.a.com/ask/?1.html
to automatically jump to 301 https://wen.a.com/ 2.html

为情所困为情所困2750 days ago573

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 17:09:12

    No one answered. It took me several days to solve it. Hey, I’d better announce it

    if ($request_uri = /ask/?1.html ) { return 301 https://wen.a.com/2.html; }
    

    reply
    0
  • Cancelreply