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.
ningx
Why is the dynamic address redirected by nginx instead of php?
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?
Why is the dynamic address redirected by nginx instead of php?
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?