0
내가 아주 제대로 작동 얻을 수없는 것의 nginx에 재를 만들려고 해요 ...의 nginx 고급 재
내가 할 노력하고있어:
재 작성 :
를 bleh.com/productPage/productname/?action=yes&id=12
에 : bleh.com/productPage/index.php?product=productname&action=yes&id=12
내가 지금까지 들어 왔 가장 가까운입니다
내가 404의 타격거야 그러나location/{
rewrite ^/productPage/(.*)/(.*)$ /productPage/index.php?$1 last;
}
location ~ \.php$ {
fastcgi_index ... (and the rest of the working fastcgi config)
..
어떤 도움을 주시면 감사하겠습니다.
근무로 대체 경로를 종료하지 않는 한 the rewrite directive이 인수를 포함하지 않는 the $uri variable에 정규식 일치, 인수가 자동으로 rewriten URL로 연결됩니다 ... 감사! – user2208647