| 1 |
RewriteEngine on |
|---|
| 2 |
Options +FollowSymLinks |
|---|
| 3 |
|
|---|
| 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 |
|---|
| 10 |
|
|---|
| 11 |
RewriteRule ^([0-9\-]+)\.css$ _templates/css.php?template=$1 |
|---|
| 12 |
|
|---|
| 13 |
RewriteRule ^(.+)\/rssstyles.xsl$ _rss/styles.xsl?rssurl=$1&url=$1 |
|---|
| 14 |
|
|---|
| 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/data/$2/$1/profile.xml |
|---|
| 18 |
RewriteRule ^([A-Za-z0-9]+)\/rss\/(.+) profile/rss2.php?profile_name=$1&tag=$2 |
|---|
| 19 |
|
|---|
| 20 |
RewriteRule ^([A-Za-z0-9]+)\/feeds\/?$ _rss/subscriptions.php?profile_name=$1 |
|---|
| 21 |
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/?$ _rss/index.php?profile_name=$1 |
|---|
| 22 |
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/skip=([0-9]+)$ _rss/index.php?profile_name=$1&feed_offset=$2 |
|---|
| 23 |
|
|---|
| 24 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ _weblog/index.php?weblog_name=$1 |
|---|
| 25 |
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&weblog_offset=$2 |
|---|
| 26 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ _weblog/archive.php?weblog_name=$1 |
|---|
| 27 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ _weblog/archive_month.php?weblog_name=$1&year=$2&month=$3 |
|---|
| 28 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/?$ _weblog/friends.php?weblog_name=$1 |
|---|
| 29 |
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ _weblog/friends.php?weblog_name=$1&weblog_offset=$2 |
|---|
| 30 |
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/weblog\/rss\/?$ _rss/data/$2/$1/weblog.xml |
|---|
| 31 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.+) _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=is |
|---|
| 32 |
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rssnot\/(.+) _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=not |
|---|
| 33 |
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ _weblog/view_post.php?post=$1 |
|---|
| 34 |
|
|---|
| 35 |
RewriteRule ^tag\/(.+)\/?$ search/all.php?tag=$1 |
|---|
| 36 |
RewriteRule ^rsstag\/(.+)\/?$ search/rss.php?tag=$1 |
|---|
| 37 |
RewriteRule ^tag\/(.+)/ecl\/?$ search/ecl.php?tag=$1 |
|---|
| 38 |
|
|---|
| 39 |
RewriteRule ^([A-Za-z0-9]+)\/friends\/?$ _friends/index.php?friends_name=$1 |
|---|
| 40 |
RewriteRule ^([A-Za-z0-9]+)\/foaf\/?$ _friends/foaf.php?friends_name=$1 |
|---|
| 41 |
|
|---|
| 42 |
RewriteRule ^([A-Za-z0-9]+)\/communities\/?$ _communities/index.php?friends_name=$1 |
|---|
| 43 |
RewriteRule ^community\/([0-9]+)\/?$ _communities/community.php?community_id=$1 |
|---|
| 44 |
|
|---|
| 45 |
RewriteRule ^([A-Za-z0-9]+)\/files\/?$ _files/index.php?files_name=$1 |
|---|
| 46 |
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/?$ _files/index.php?files_name=$1&folder=$2 |
|---|
| 47 |
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ _files/download.php?files_name=$1&folder=$2&filename=$4&id=$3 |
|---|
| 48 |
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/files\/rss\/?$ _rss/data/$2/$1/files.xml |
|---|
| 49 |
RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+) _files/rss2.php?files_name=$1&tag=$2 |
|---|
| 50 |
|
|---|
| 51 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/?$ _calendar/rss.php?username=$1 |
|---|
| 52 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/(.*) _calendar/rss.php?tag=$2 |
|---|
| 53 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/([0-9]+)\.html$ _calendar/view_events.php?event_id=$2 |
|---|
| 54 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/import\/?$ _calendar/ical_import.php |
|---|
| 55 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/?$ _calendar/archive.php?username=$1 |
|---|
| 56 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/([0-9]+)\/([0-9]+)\/?$ _calendar/archive_month.php?username=$1&year=$2&month=$3 |
|---|
| 57 |
|
|---|
| 58 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/?$ _calendar/index.php?context=private |
|---|
| 59 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/friends\/?$ _calendar/index.php?context=friends |
|---|
| 60 |
RewriteRule ^([A-Za-z0-9]+)\/calendar\/communities\/?$ _calendar/index.php?context=communities |
|---|
| 61 |
|
|---|
| 62 |
# Some blogging clients probe Wordpress or MoveableType endpoints, |
|---|
| 63 |
# redirect them to the Elgg xml-rpc endpoint |
|---|
| 64 |
# |
|---|
| 65 |
RewriteRule xml-rpc.php _rpc/RPC2.php |
|---|
| 66 |
RewriteRule mt/mt-xmlrpc.cgi _rpc/RPC2.php |
|---|
| 67 |
|
|---|