Skip to content

Instantly share code, notes, and snippets.

Joe Savage joesavage

Block or report user

Report or block joesavage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7613586
# Basic Rewrites
location ~ ^(.*/)index(\.html)?$ { return 301 $scheme://$host$1; }
location ~ ^(/.+)\.html$ { return 301 $scheme://$host$1; }
location ~ /$ {
# 'try_files' > 'index', to avoid re-write/location rules.
try_files $request_uri/index.html $request_uri/index.php =404;
try_files $uri.html $uri/ =404;
View gist:6172587
View gist:6172579,_Incentives_and_Awards
You can’t perform that action at this time.