Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Convert rewrite from apache to nginx

$
0
0
location / {
try_files $uri $uri/ =404;
}

location ~ ^/[^/]+/[^_]+_.*\.jpg$ {
return 301 /page.html;
# use "try_files" instead of "return 301" if page.html is a static page
# try_files /page.html $uri;
}

Andrejs

Viewing all articles
Browse latest Browse all 53287

Trending Articles