Skip to content

Commit

Permalink
[conf] rollback to working version of rewrite rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Aug 6, 2017
1 parent a80aa8a commit 6a95850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx/conf.d/directives/rewrites.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# remove /index.html and trailing slash
rewrite ^(.*)/index.html https://$server_name/$1 permanent;
# remove /index.html from the $request_uri
rewrite ^(.*/)index.html $1 permanent;

# remove trailing slash
rewrite ^(.*)/$ https://$server_name/$1 permanent;
rewrite ^/(.*)/$ /$1 permanent;

0 comments on commit 6a95850

Please sign in to comment.