From f0f84b304bce311121d79eec9b8ce7696dc4d38f Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 4 Jun 2017 18:32:34 +0200 Subject: [PATCH] Added config/instructions for nginx/Apache URL rewriting - fixes #1 --- .htaccess | 4 ++++ README.md | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..66ef8f69 --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^ index.php [QSA,L] diff --git a/README.md b/README.md index fd117ca7..203d7bb2 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ Public demo of the latest version → [https://grocy.projectdemos.berrnd.org] ## How to install Just unpack the [latest release](https://github.com/berrnd/grocy/releases/latest) on your PHP enabled webserver, copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go. Alternatively clone this repository and install Composer and Bower dependencies manually. +If you use nginx as your webserver, please include `try_files $uri /index.php;` in your location block. + ## Notes about barcode readers Some fields also allow to select a value by scanning a barcode. It works best when your barcode reader prefixes every barcode with a letter this is normally not part of a item name (I use a `$`) and sends a `TAB` after a scan.