diff options
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | index.php | 2 |
2 files changed, 3 insertions, 9 deletions
@@ -11,15 +11,9 @@ Its intuitive interface lets you use it efficiently from the start. See the Usag * If you're going to use this application for sensitive data, you should seriously consider using HTTPS. -* We need to remove trailing slashes from requests. For nginx, this means something like: +* Every request that is not a file or directory itself should link back to /index.php. The query string should be left intact. For nginx, this means: - rewrite ^/(.*)/$ /$1 permanent; - - In the appropriate server / location block. - -* Every request that is not a file itself should link back to /index.php. The query string should be left intact. For nginx, this means: - - try_files $uri /index.php$is_args$query_string; + try_files $uri $uri/ /index.php$is_args$query_string; In the appropriate location block. @@ -36,7 +36,7 @@ $_request = str_replace(constants::url_internal, '', $_request); // This is the REQUEST_URI switch // The default shows a 404 page $pages = array( - '' => './include/home.php', + '/' => './include/home.php', '/clients' => './include/clients.php', '/clients/new' => './include/clients-new.php', '/clients/edit' => './include/clients-edit.php', |