mirror of
https://github.com/frappe/bench.git
synced 2025-02-02 19: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 / {
|
location / {
|
||||||
|
|
||||||
|
rewrite ^(.+)/$ $1 permanent;
|
||||||
|
rewrite ^(.+)/index\.html$ $1 permanent;
|
||||||
|
rewrite ^(.+)\.html$ $1 permanent;
|
||||||
|
|
||||||
location ~ ^/files/.*.(htm|html|svg|xml) {
|
location ~ ^/files/.*.(htm|html|svg|xml) {
|
||||||
add_header Content-disposition "attachment";
|
add_header Content-disposition "attachment";
|
||||||
try_files /{{ site_name }}/public/$uri @webserver;
|
try_files /{{ site_name }}/public/$uri @webserver;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user