aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-19 20:13:24 -0700
committerFriendika <info@friendika.com>2011-06-19 20:13:24 -0700
commitb56e00c7c5ed1ee7043852b4ce025a3d02f139e8 (patch)
tree63482f7483016c0486f16fdcbc83cfedd876931b /.htaccess
parentcc7c72be9048941167d2e911c0db4b2050acd4f8 (diff)
downloadvolse-hubzilla-b56e00c7c5ed1ee7043852b4ce025a3d02f139e8.tar.gz
volse-hubzilla-b56e00c7c5ed1ee7043852b4ce025a3d02f139e8.tar.bz2
volse-hubzilla-b56e00c7c5ed1ee7043852b4ce025a3d02f139e8.zip
api post sort of working - output status,user need to be swapped
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess4
1 files changed, 3 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index fe09fc522..9cd6fa34c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,13 +9,15 @@ Deny from all
<IfModule mod_rewrite.c>
RewriteEngine on
+# RewriteRule api.* - [E=REMOTE_USER:%{HTTP:Authorization},L]
+
# Protect repo directory from browsing
RewriteRule "(^|/)\.git" - [F]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
+ RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
</IfModule>