summaryrefslogtreecommitdiff
path: root/htaccess.sample
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-20 04:10:21 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-20 04:10:21 -0400
commit9c0455dfc64bed49feae98c332a2285b94f63172 (patch)
treeed832a70b91710fbd4e0bd1b336377a4f9513060 /htaccess.sample
parent224a3ad82c9f4976931ad6f1876a4a767dbfdf72 (diff)
Add rewrite rules for tags
darcs-hash:20080720081021-533db-c5610ba4b0bb7f1999582ee4f9220ff2e5595949.gz
Diffstat (limited to 'htaccess.sample')
-rw-r--r--htaccess.sample5
1 files changed, 4 insertions, 1 deletions
diff --git a/htaccess.sample b/htaccess.sample
index 3eb1ddba5..86d014618 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -44,6 +44,9 @@ RewriteRule ^notice/(\d+)$ index.php?action=shownotice&notice=$1 [L,QSA]
RewriteRule ^user/(\d+)$ index.php?action=userbyid&id=$1 [L,QSA]
+RewriteRule ^tags/?$ index.php?action=tag [L,QSA]
+RewriteRule ^tag(/(.*))?$ index.php?action=tag&tag=$2 [L,QSA]
+
RewriteRule ^(\w+)/subscriptions$ index.php?action=subscriptions&nickname=$1 [L,QSA]
RewriteRule ^(\w+)/subscribers$ index.php?action=subscribers&nickname=$1 [L,QSA]
RewriteRule ^(\w+)/xrds$ index.php?action=xrds&nickname=$1 [L,QSA]
@@ -57,7 +60,7 @@ RewriteRule ^(\w+)/avatar/(original|96|48|24)$ index.php?action=avatarbynickname
RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA]
-# Twitter-compatible API rewrites
+# Twitter-compatible API rewrites
# XXX: Surely these can be refactored a little -- Zach
RewriteRule ^api/statuses/public_timeline(.*)$ index.php?action=api&apiaction=statuses&method=public_timeline$1 [L,QSA]
RewriteRule ^api/statuses/friends_timeline(.*)$ index.php?action=api&apiaction=statuses&method=friends_timeline$1 [L,QSA]