Skip to content

Instantly share code, notes, and snippets.

@dreammonkey
Last active August 1, 2017 18:37
Show Gist options
  • Save dreammonkey/569f5e75c180f6689374 to your computer and use it in GitHub Desktop.
Save dreammonkey/569f5e75c180f6689374 to your computer and use it in GitHub Desktop.
if ($ssl_protocol = "") {
rewrite ^ https://$server_name$request_uri? permanent;
}
if (!-f $request_filename) {
rewrite ^(.*) /index.php?$1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment