diff --git a/.gitignore b/.gitignore index e5698ef7..49298d72 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,4 @@ /public/uploads/* !/public/uploads/index.html /runtime/* -!/runtime/index.html -/public/nginx.htaccess \ No newline at end of file +!/runtime/index.html \ No newline at end of file diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 00000000..caaedcac --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,5 @@ +location / { + if (!-f $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + } +} \ No newline at end of file