From 80a6afc577bb496b74149cb20fe4e39d33695c05 Mon Sep 17 00:00:00 2001 From: jfefe Date: Mon, 15 Jun 2015 14:11:53 +0200 Subject: [PATCH] Add htaccess example for API usage --- htdocs/public/api/htaccess.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 htdocs/public/api/htaccess.txt diff --git a/htdocs/public/api/htaccess.txt b/htdocs/public/api/htaccess.txt new file mode 100644 index 00000000000..a8106809018 --- /dev/null +++ b/htdocs/public/api/htaccess.txt @@ -0,0 +1,15 @@ +# +# Apache configuration file to use API +# + +DirectoryIndex index.php + + RewriteEngine On + RewriteRule ^$ index.php [QSA,L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php [QSA,L] + + + php_flag display_errors On + \ No newline at end of file