aboutsummaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorArno Richter <oelna@oelna.de>2022-12-13 16:43:19 +0100
committerArno Richter <oelna@oelna.de>2022-12-13 16:43:19 +0100
commit24e62005fc0ad4496032206ec0538b3299e4cedb (patch)
treef20a71c88286223c343dac3bace87131adc79cef /.htaccess
parent157dd386cf2b19aaa5adfb598b4cb5485d6cee69 (diff)
downloadmicroblog-24e62005fc0ad4496032206ec0538b3299e4cedb.tar.gz
microblog-24e62005fc0ad4496032206ec0538b3299e4cedb.tar.bz2
microblog-24e62005fc0ad4496032206ec0538b3299e4cedb.zip
added support for the microblog XMLRPC API.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess6
1 files changed, 6 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index d8e6eb2..bdabf00 100644
--- a/.htaccess
+++ b/.htaccess
@@ -18,6 +18,12 @@ AddType application/json .json
RewriteEngine On
RewriteBase /microblog
+# friendly URLs
+RewriteRule ^rsd/?$ rsd.xml.php [L]
+RewriteRule ^xmlrpc/?(.*)$ xmlrpc.php?/$1 [L]
+RewriteRule ^feed/json/?$ feed/feed.json [L]
+RewriteRule ^feed/atom/?$ feed/feed.xml [L]
+
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]