aboutsummaryrefslogtreecommitdiff
path: root/api/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'api/.htaccess')
-rw-r--r--api/.htaccess11
1 files changed, 10 insertions, 1 deletions
diff --git a/api/.htaccess b/api/.htaccess
index 8c48221..0db2254 100644
--- a/api/.htaccess
+++ b/api/.htaccess
@@ -7,4 +7,13 @@ RewriteRule ^posts/all posts_all.php
RewriteRule ^posts/update posts_update.php
RewriteRule ^posts/add posts_add.php
RewriteRule ^posts/delete posts_delete.php
-RewriteRule ^tags/rename tags_rename.php \ No newline at end of file
+RewriteRule ^tags/rename tags_rename.php
+
+
+# Allow PHP_AUTH_USER with CGI script
+# (Sinpired by http://www.yetanothercommunitysystem.com/article-321-regle-comment-utiliser-l-authentification-http-en-php-chez-ovh )
+
+<IfModule mod_rewrite.c>
+RewriteEngine on
+RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
+</IfModule>