I need to redirect following URL:
Can somebody help me on this? We are using nginx 1.1.19. Also, we need a server side redirect (URL in client side's browser should stay as the first one), not an http forward.
============== add more information for debugging:
In the details/product.jsp file, I have something like this:
<link href="../docs/assets/css/bootstrap.css" rel="stylesheet">
And the bootstrap.css is under /usr/share/nginx/www/docs/assets/css/ . However, when I use rewrite rule:
rewrite ^/product/product-name/(\d+)$ /details/product.jsp?pid=$1;
The root directory somehow become /www/product, hence the details/product.jsp tries to find the bootstrap.css under:
which causes file not found error in the log.
Hope above information helps.