]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - htaccess.sample
Group search
[quix0rs-gnu-social.git] / htaccess.sample
1 RewriteEngine On
2
3 # NOTE: change this to your actual Laconica path; may be "/".
4
5 RewriteBase /mublog/
6
7 RewriteRule ^$ index.php?action=public [L,QSA]
8 RewriteRule ^rss$ index.php?action=publicrss [L,QSA]
9 RewriteRule ^xrds$ index.php?action=publicxrds [L,QSA]
10 RewriteRule ^featuredrss$ index.php?action=featuredrss [L,QSA]
11 RewriteRule ^favoritedrss$ index.php?action=favoritedrss [L,QSA]
12 RewriteRule ^opensearch/people$ index.php?action=opensearch&type=people [L,QSA]
13 RewriteRule ^opensearch/notice$ index.php?action=opensearch&type=notice [L,QSA]
14
15 RewriteRule ^doc/about$ index.php?action=doc&title=about [L,QSA]
16 RewriteRule ^doc/contact$ index.php?action=doc&title=contact [L,QSA]
17 RewriteRule ^doc/faq$ index.php?action=doc&title=faq [L,QSA]
18 RewriteRule ^doc/help$ index.php?action=doc&title=help [L,QSA]
19 RewriteRule ^doc/im$ index.php?action=doc&title=im [L,QSA]
20 RewriteRule ^doc/openid$ index.php?action=doc&title=openid [L,QSA]
21 RewriteRule ^doc/openmublog$ index.php?action=doc&title=openmublog [L,QSA]
22 RewriteRule ^doc/privacy$ index.php?action=doc&title=privacy [L,QSA]
23 RewriteRule ^doc/source$ index.php?action=doc&title=source [L,QSA]
24
25 RewriteRule ^facebook/$ index.php?action=facebookhome [L,QSA]
26 RewriteRule ^facebook/index.php$ index.php?action=facebookhome [L,QSA]
27 RewriteRule ^facebook/settings.php$ index.php?action=facebooksettings [L,QSA]
28 RewriteRule ^facebook/invite.php$ index.php?action=facebookinvite [L,QSA]
29 RewriteRule ^facebook/remove$ index.php?action=facebookremove [L,QSA]
30
31 RewriteRule ^main/login$ index.php?action=login [L,QSA]
32 RewriteRule ^main/logout$ index.php?action=logout [L,QSA]
33 RewriteRule ^main/register/(.*)$ index.php?action=register&code=$1 [L,QSA]
34 RewriteRule ^main/register$ index.php?action=register [L,QSA]
35 RewriteRule ^main/openid$ index.php?action=openidlogin [L,QSA]
36 RewriteRule ^main/remote$ index.php?action=remotesubscribe [L,QSA]
37
38 RewriteRule ^main/subscribe$ index.php?action=subscribe [L,QSA]
39 RewriteRule ^main/unsubscribe$ index.php?action=unsubscribe [L,QSA]
40 RewriteRule ^main/confirmaddress$ index.php?action=confirmaddress [L,QSA]
41 RewriteRule ^main/confirmaddress/(.*)$ index.php?action=confirmaddress&code=$1 [L,QSA]
42 RewriteRule ^main/recoverpassword$ index.php?action=recoverpassword [L,QSA]
43 RewriteRule ^main/recoverpassword/(.*)$ index.php?action=recoverpassword&code=$1 [L,QSA]
44 RewriteRule ^main/invite$ index.php?action=invite [L,QSA]
45
46 RewriteRule ^main/favor$ index.php?action=favor [L,QSA]
47 RewriteRule ^main/disfavor$ index.php?action=disfavor [L,QSA]
48
49 RewriteRule ^main/sup$ index.php?action=sup [L,QSA]
50
51 RewriteRule ^main/tagother$ index.php?action=tagother [L,QSA]
52
53 RewriteRule ^main/block$ index.php?action=block [L,QSA]
54
55 RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA]
56 RewriteRule ^settings/avatar$ index.php?action=avatarsettings [L,QSA]
57 RewriteRule ^settings/password$ index.php?action=passwordsettings [L,QSA]
58 RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA]
59 RewriteRule ^settings/im$ index.php?action=imsettings [L,QSA]
60 RewriteRule ^settings/email$ index.php?action=emailsettings [L,QSA]
61 RewriteRule ^settings/sms$ index.php?action=smssettings [L,QSA]
62 RewriteRule ^settings/twitter$ index.php?action=twittersettings [L,QSA]
63 RewriteRule ^settings/other$ index.php?action=othersettings [L,QSA]
64
65 RewriteRule ^search/group$ index.php?action=groupsearch [L,QSA]
66 RewriteRule ^search/people$ index.php?action=peoplesearch [L,QSA]
67 RewriteRule ^search/notice$ index.php?action=noticesearch [L,QSA]
68 RewriteRule ^search/notice/rss$ index.php?action=noticesearchrss [L,QSA]
69
70 RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA]
71 RewriteRule ^notice/(\d+)$ index.php?action=shownotice&notice=$1 [L,QSA]
72 RewriteRule ^notice/delete/((\d+))?$ index.php?action=deletenotice&notice=$2 [L,QSA]
73 RewriteRule ^notice/delete$ index.php?action=deletenotice [L,QSA]
74
75 RewriteRule ^message/new$ index.php?action=newmessage [L,QSA]
76 RewriteRule ^message/(\d+)$ index.php?action=showmessage&message=$1 [L,QSA]
77
78 RewriteRule ^user/(\d+)$ index.php?action=userbyid&id=$1 [L,QSA]
79
80 RewriteRule ^tags/?$ index.php?action=publictagcloud [L,QSA]
81 RewriteRule ^tag/([a-zA-Z0-9]+)/rss$ index.php?action=tagrss&tag=$1 [L,QSA]
82 RewriteRule ^tag(/(.*))?$ index.php?action=tag&tag=$2 [L,QSA]
83
84 RewriteRule ^peopletag/([a-zA-Z0-9]+)$ index.php?action=peopletag&tag=$1 [L,QSA]
85
86 RewriteRule ^featured/?$ index.php?action=featured [L,QSA]
87 RewriteRule ^favorited/?$ index.php?action=favorited [L,QSA]
88
89 RewriteRule ^group/new index.php?action=newgroup [L,QSA]
90 RewriteRule ^group/([a-zA-Z0-9]+)/edit index.php?action=editgroup&nickname=$1 [L,QSA]
91 RewriteRule ^group/([a-zA-Z0-9]+)/join index.php?action=joingroup&nickname=$1 [L,QSA]
92 RewriteRule ^group/([a-zA-Z0-9]+)/leave index.php?action=leavegroup&nickname=$1 [L,QSA]
93 RewriteRule ^group/([a-zA-Z0-9]+)/members index.php?action=groupmembers&nickname=$1 [L,QSA]
94 RewriteRule ^group/([0-9]+)/id index.php?action=groupbyid&id=$1 [L,QSA]
95 RewriteRule ^group/([a-zA-Z0-9]+)/rss index.php?action=grouprss&nickname=$1 [L,QSA]
96 RewriteRule ^group/([a-zA-Z0-9]+)$ index.php?action=showgroup&nickname=$1 [L,QSA]
97 RewriteRule ^group$ index.php?action=groups [L,QSA]
98
99 # Twitter-compatible API rewrites
100 # XXX: Surely these can be refactored a little -- Zach
101 RewriteRule ^api/statuses/public_timeline(.*)$ index.php?action=api&apiaction=statuses&method=public_timeline$1 [L,QSA]
102 RewriteRule ^api/statuses/friends_timeline(.*)$ index.php?action=api&apiaction=statuses&method=friends_timeline$1 [L,QSA]
103 RewriteRule ^api/statuses/user_timeline/(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline&argument=$1 [L,QSA]
104 RewriteRule ^api/statuses/user_timeline(.*)$ index.php?action=api&apiaction=statuses&method=user_timeline$1 [L,QSA]
105 RewriteRule ^api/statuses/show/(.*)$ index.php?action=api&apiaction=statuses&method=show&argument=$1 [L,QSA]
106 RewriteRule ^api/statuses/update(.*)$ index.php?action=api&apiaction=statuses&method=update$1 [L,QSA]
107 RewriteRule ^api/statuses/replies(.*)$ index.php?action=api&apiaction=statuses&method=replies&argument=$1 [L,QSA]
108 RewriteRule ^api/statuses/destroy/(.*)$ index.php?action=api&apiaction=statuses&method=destroy&argument=$1 [L,QSA]
109 RewriteRule ^api/statuses/friends/(.*)$ index.php?action=api&apiaction=statuses&method=friends&argument=$1 [L,QSA]
110 RewriteRule ^api/statuses/friends(.*)$ index.php?action=api&apiaction=statuses&method=friends$1 [L,QSA]
111 RewriteRule ^api/statuses/followers/(.*)$ index.php?action=api&apiaction=statuses&method=followers&argument=$1 [L,QSA]
112 RewriteRule ^api/statuses/followers(.*)$ index.php?action=api&apiaction=statuses&method=followers$1 [L,QSA]
113 RewriteRule ^api/statuses/featured(.*)$ index.php?action=api&apiaction=statuses&method=featured$1 [L,QSA]
114 RewriteRule ^api/users/show/(.*)$ index.php?action=api&apiaction=users&method=show&argument=$1 [L,QSA]
115 RewriteRule ^api/users/show(.*)$ index.php?action=api&apiaction=users&method=show$1 [L,QSA]
116 RewriteRule ^api/direct_messages/sent(.*)$ index.php?action=api&apiaction=direct_messages&method=sent$1 [L,QSA]
117 RewriteRule ^api/direct_messages/destroy/(.*)$ index.php?action=api&apiaction=direct_messages&method=destroy&argument=$1 [L,QSA]
118 RewriteRule ^api/direct_messages/new(.*)$ index.php?action=api&apiaction=direct_messages&method=create$1 [L,QSA]
119 RewriteRule ^api/direct_messages(.*)$ index.php?action=api&apiaction=direct_messages&method=direct_messages$1 [L,QSA]
120 RewriteRule ^api/friendships/create/(.*)$ index.php?action=api&apiaction=friendships&method=create&argument=$1 [L,QSA]
121 RewriteRule ^api/friendships/destroy/(.*)$ index.php?action=api&apiaction=friendships&method=destroy&argument=$1 [L,QSA]
122 RewriteRule ^api/friendships/exists(.*)$ index.php?action=api&apiaction=friendships&method=exists$1 [L,QSA]
123 RewriteRule ^api/account/verify_credentials(.*)$ index.php?action=api&apiaction=account&method=verify_credentials$1 [L,QSA]
124 RewriteRule ^api/account/end_session$ index.php?action=api&apiaction=account&method=end_session$1 [L,QSA]
125 RewriteRule ^api/account/update_location(.*)$ index.php?action=api&apiaction=account&method=update_location$1 [L,QSA]
126 RewriteRule ^api/account/update_delivery_device(.*)$ index.php?action=api&apiaction=account&method=update_delivery_device$1 [L,QSA]
127 RewriteRule ^api/account/rate_limit_status(.*)$ index.php?action=api&apiaction=account&method=rate_limit_status$1 [L,QSA]
128 RewriteRule ^api/favorites/create/(.*)$ index.php?action=api&apiaction=favorites&method=create&argument=$1 [L,QSA]
129 RewriteRule ^api/favorites/destroy/(.*)$ index.php?action=api&apiaction=favorites&method=destroy&argument=$1 [L,QSA]
130 RewriteRule ^api/favorites/(.*)$ index.php?action=api&apiaction=favorites&method=favorites&argument=$1 [L,QSA]
131 RewriteRule ^api/favorites(.*)$ index.php?action=api&apiaction=favorites&method=favorites$1 [L,QSA]
132 RewriteRule ^api/notifications/follow/(.*)$ index.php?action=api&apiaction=notifications&method=follow&argument=$1 [L,QSA]
133 RewriteRule ^api/notifications/leave/(.*)$ index.php?action=api&apiaction=notifications&method=leave&argument=$1 [L,QSA]
134 RewriteRule ^api/blocks/create/(.*)$ index.php?action=api&apiaction=blocks&method=create&argument=$1 [L,QSA]
135 RewriteRule ^api/blocks/destroy/(.*)$ index.php?action=api&apiaction=blocks&method=destroy&argument=$1 [L,QSA]
136 RewriteRule ^api/help/(.*)$ index.php?action=api&apiaction=help&method=$1 [L,QSA]
137 RewriteRule ^api/laconica/version(.*)$ index.php?action=api&apiaction=laconica&method=version$1 [L,QSA]
138 RewriteRule ^api/laconica/config(.*)$ index.php?action=api&apiaction=laconica&method=config$1 [L,QSA]
139 RewriteRule ^api/laconica/wadl\.xml$ index.php?action=api&apiaction=laconica&method=wadl.xml [L,QSA]
140
141 RewriteRule ^(\w+)/subscriptions$ index.php?action=subscriptions&nickname=$1 [L,QSA]
142 RewriteRule ^(\w+)/subscriptions/([a-zA-Z0-9]+)$ index.php?action=subscriptions&nickname=$1&tag=$2 [L,QSA]
143 RewriteRule ^(\w+)/subscribers/([a-zA-Z0-9]+)$ index.php?action=subscribers&nickname=$1&tag=$2 [L,QSA]
144 RewriteRule ^(\w+)/subscribers$ index.php?action=subscribers&nickname=$1 [L,QSA]
145 RewriteRule ^(\w+)/nudge$ index.php?action=nudge&nickname=$1 [L,QSA]
146 RewriteRule ^(\w+)/xrds$ index.php?action=xrds&nickname=$1 [L,QSA]
147 RewriteRule ^(\w+)/rss$ index.php?action=userrss&nickname=$1 [L,QSA]
148 RewriteRule ^(\w+)/all$ index.php?action=all&nickname=$1 [L,QSA]
149 RewriteRule ^(\w+)/all/rss$ index.php?action=allrss&nickname=$1 [L,QSA]
150 RewriteRule ^(\w+)/foaf$ index.php?action=foaf&nickname=$1 [L,QSA]
151 RewriteRule ^(\w+)/replies$ index.php?action=replies&nickname=$1 [L,QSA]
152 RewriteRule ^(\w+)/replies/rss$ index.php?action=repliesrss&nickname=$1 [L,QSA]
153 RewriteRule ^(\w+)/avatar/(original|96|48|24)$ index.php?action=avatarbynickname&nickname=$1&size=$2 [L,QSA]
154 RewriteRule ^(\w+)/favorites$ index.php?action=showfavorites&nickname=$1 [L,QSA]
155 RewriteRule ^(\w+)/favorites/rss$ index.php?action=favoritesrss&nickname=$1 [L,QSA]
156 RewriteRule ^(\w+)/inbox$ index.php?action=inbox&nickname=$1 [L,QSA]
157 RewriteRule ^(\w+)/outbox$ index.php?action=outbox&nickname=$1 [L,QSA]
158 RewriteRule ^(\w+)/microsummary$ index.php?action=microsummary&nickname=$1 [L,QSA]
159 RewriteRule ^(\w+)/groups$ index.php?action=usergroups&nickname=$1 [L,QSA]
160
161 RewriteRule ^(\w+)$ index.php?action=showstream&nickname=$1 [L,QSA]
162
163 <FilesMatch "\.(ini)">
164   Order allow,deny
165 </FilesMatch>
166