Small tweak to the default template.
[elgg.git] / .htaccess
blob3e06c278d17d99e68c7a78c7474f0253218a53e8
1 RewriteEngine on
2 Options +FollowSymLinks
4 #php_flag magic_quotes_gpc on
5 #php_value arg_separator.output "&"
6 # Not really necessary, just to be clean
7 #php_flag short_open_tag off
8 # Forgot that anyone might still have this turned on
9 #php_flag register_globals off
11 RewriteRule ^([0-9\-]+)\.css$ _templates/css.php?template=$1
13 RewriteRule ^(.+)\/rssstyles.xsl$ _rss/styles.xsl?rssurl=$1&url=$1
15 RewriteRule ^([A-Za-z0-9]+)(\/)?$ profile/index.php?profile_name=$1
16 RewriteRule ^([A-Za-z0-9]+)\/tags(\/)?$ search/personaltags.php?profile_name=$1
17 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=profile
18 RewriteRule ^([A-Za-z0-9]+)\/rss\/(.+) profile/rss2.php?profile_name=$1&tag=$2
20 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/?$ _rss/subscriptions.php?profile_name=$1
21 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/?$ _rss/index.php?profile_name=$1
22 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/skip=([0-9]+)$ _rss/index.php?profile_name=$1&feed_offset=$2
24 RewriteRule ^([A-Za-z0-9]+)\/feeds\/?$ _rss/subscriptions.php?profile_name=$1
25 RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/?$ _rss/index.php?profile_name=$1
26 RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/skip=([0-9]+)$ _rss/index.php?profile_name=$1&feed_offset=$2
28 RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ _weblog/index.php?weblog_name=$1
29 ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&weblog_offset=$2
30 RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ _weblog/archive.php?weblog_name=$1
31 RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ _weblog/archive_month.php?weblog_name=$1&year=$2&month=$3
32 RewriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/?$ _weblog/friends.php?weblog_name=$1
33 ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ _weblog/friends.php?weblog_name=$1&weblog_offset=$2
34 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/weblog\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=weblog
35 RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.+) _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=is
36 RewriteRule ^([A-Za-z0-9]+)\/weblog\/rssnot\/(.+) _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=not
37 RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ _weblog/view_post.php?post=$1
39 RewriteRule ^tag\/(.+)\/?$ search/all.php?tag=$1
40 RewriteRule ^rsstag\/(.+)\/?$ search/rss.php?tag=$1
41 RewriteRule ^tag\/(.+)/ecl\/?$ search/ecl.php?tag=$1
43 RewriteRule ^([A-Za-z0-9]+)\/friends\/?$ _friends/index.php?friends_name=$1
44 RewriteRule ^([A-Za-z0-9]+)\/foaf\/?$ _friends/foaf.php?friends_name=$1
46 RewriteRule ^([A-Za-z0-9]+)\/communities\/?$ _communities/index.php?friends_name=$1
47 RewriteRule ^community\/([0-9]+)\/?$ _communities/community.php?community_id=$1
49 RewriteRule ^([A-Za-z0-9]+)\/files\/?$ _files/index.php?files_name=$1
50 RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9]+)\/?$ _files/index.php?files_name=$1&folder=$2
51 RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ _files/download.php?files_name=$1&folder=$2&filename=$4&id=$3
52 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/files\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=files
53 RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+) _files/rss2.php?files_name=$1&tag=$2
55 RewriteRule ^([A-Za-z0-9]+)\/icons\/([-0-9]+)\/?$ _icons/icon.php?id=$2
56 RewriteRule ^([A-Za-z0-9]+)\/icons\/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/?$ _icons/icon.php?id=$2&constraint1=$3&size1=$4
57 RewriteRule ^([A-Za-z0-9]+)\/icons\/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/([A-Za-z])\/([0-9]+)\/?$ _icons/icon.php?id=$2&constraint1=$3&size1=$4&constraint2=$5&size2=$6
59 RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/?$ _calendar/rss.php?username=$1
60 RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/(.*) _calendar/rss.php?tag=$2
61 RewriteRule ^([A-Za-z0-9]+)\/calendar\/([0-9]+)\.html$ _calendar/view_events.php?event_id=$2
62 RewriteRule ^([A-Za-z0-9]+)\/calendar\/import\/?$ _calendar/ical_import.php
63 RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/?$ _calendar/archive.php?username=$1
64 RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/([0-9]+)\/([0-9]+)\/?$ _calendar/archive_month.php?username=$1&year=$2&month=$3
66 RewriteRule ^([A-Za-z0-9]+)\/calendar\/?$ _calendar/index.php?context=private
67 RewriteRule ^([A-Za-z0-9]+)\/calendar\/friends\/?$ _calendar/index.php?context=friends
68 RewriteRule ^([A-Za-z0-9]+)\/calendar\/communities\/?$ _calendar/index.php?context=communities
70 # Some blogging clients probe Wordpress or MoveableType endpoints,
71 # redirect them to the Elgg xml-rpc endpoint
73 RewriteRule xml-rpc.php _rpc/RPC2.php
74 RewriteRule mt/mt-xmlrpc.cgi _rpc/RPC2.php