2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 15:08:24 +00:00

fix(nginx): add redirect rules to avoid duplicate content

This commit is contained in:
Development for People 2019-12-07 07:05:21 +01:00 committed by Chinmay Pai
parent 63737e3bae
commit 7051aa3d4e

View File

@ -59,6 +59,10 @@ server {
location / {
rewrite ^(.+)/$ $1 permanent;
rewrite ^(.+)/index\.html$ $1 permanent;
rewrite ^(.+)\.html$ $1 permanent;
location ~ ^/files/.*.(htm|html|svg|xml) {
add_header Content-disposition "attachment";
try_files /{{ site_name }}/public/$uri @webserver;