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:
parent
63737e3bae
commit
7051aa3d4e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user