search

Home  >  Q&A  >  body text

Can nginx redirect dynamic addresses to pseudo-static addresses?

rewrite ^/index.php?m=Blog&a=blog&id=([0-9]+)&p=([0-9]+)$       /-.html permanent;

Can nginx redirect dynamic addresses to pseudo-static addresses? ningx I don’t know much about the grammar, so I’d like to give you some guidance. Thank you.

淡淡烟草味淡淡烟草味2757 days ago747

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 17:29:49

    Why is the dynamic address redirected by nginx instead of php?

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 17:29:49

    Brother, did you write this wrong?

    Do you want to visit

    /1-2.html

    Then, the actual access of PHP may be /index.php?a=Blog&id=1&p=2, right?

    reply
    0
  • Cancelreply