how can I rewrite this kind of url in nginx
http://example.org/index.php?p=discussion/7/topic
into this
http://example.org/discussion/7/topic
I used location
/forum {try_files $uri $uri/ @forum;}
location @forum {rewrite ^/forum(.+)$ /forum/index.php?p=$1 last;}
Thank you for advices :)
答案 0 :(得分:1)
问题解决了。重写来自Srgrn的网址是对的,我只是愚蠢而且没有检查我的CSS路线。谢谢。