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
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