diff --git a/README.md b/README.md index 2eb25bf..51da9e6 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,21 @@ Is an image viewer written in HTML5. ## Howto -*in theory*, just: -Get the [newest release](https://github.com/danieltroger/imagr/releases/latest), extract it and place it on your webserver, ensure that we can write there, place your images in the root folder of this script or just simply drag and drop them into the page. Enjoy! +Get the [newest release](https://github.com/danieltroger/imagr/releases/latest) (you probaly just got), extract it and place it on your webserver, ensure that we can write there, edit `config.php` to fit your needs, place your images in the root folder of this script or just simply drag and drop them into the page. Enjoy! -**BUT** we actually don't care about theory, because you will get an outdated version. Just clone this repository, copy config.default.php to config.php, set up your database info's and enable / disable the features you need and you're ballin'. +PS: If you are planning to use imagr in the root directory of your website, the automatic `.htaccess` creation won't work. + +** ONLY IF ABOVE APPLIES TO YOU (you want to be able to reach imagr at yoursite.tld/ instead of (for example) yoursite.tld/imagr/) ** Put the following into it (the `.htaccess` file in the root directory of imagr): +``` + +RewriteEngine On +RewriteBase / +RewriteRule ^download\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /download.php [L] + +``` ----------