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