Skip to content

Commit

Permalink
Remove trailing slashes from URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bharani91 committed Jul 1, 2020
1 parent 3864fd7 commit 043e6ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/nginx/files/config/general.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;

# remove trailing slashes
rewrite ^/(.*)/$ /$1 permanent;

0 comments on commit 043e6ae

Please sign in to comment.