small css tweak
[elgg.git] / htaccess-dist
blob588ebe6719b66d417405cfbc5adf3e1b73c2543f
1 <IfModule !mod_rewrite.c>
2     # ugly ugly hack to detect missing mod_rewrite
3     # RedirectMatch must be to an absolute destination, so forces 500 error...
4     ErrorDocument 500 "Elgg error: Apache does not have mod_rewrite loaded. Please check your apache setup."
5     RedirectMatch 302 .* index.php
6 </IfModule>
8 Options +FollowSymLinks
10 # Not really necessary, just to be clean
11 #php_flag short_open_tag off
12 # Forgot that anyone might still have this turned on
13 #php_flag register_globals off
15 <IfModule mod_rewrite.c>
17 RewriteEngine on
19 # If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line
20 # containing the path from your site root to elgg's root. e.g. If your site is
21 # http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need 
23 #RewriteBase /sites/elgg/
25 # here, only without the # in front.
27 # If you're not running Elgg in a subdirectory on your site, but still getting lots
28 # of 404 errors beyond the front page, you could instead try:
30 #RewriteBase /
32 RewriteRule ^([0-9\-]+)\.css$ _templates/css.php?template=$1
34 RewriteRule ^(.+)\/rssstyles.xsl$ _rss/styles.php?rssurl=$1&url=$1
36 RewriteRule ^([A-Za-z0-9]+)(\/)?$ profile/index.php?profile_name=$1
37 RewriteRule ^([A-Za-z0-9]+)\/tags(\/)?$ search/personaltags.php?profile_name=$1
38 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=profile
39 RewriteRule ^([A-Za-z0-9]+)\/rss\/(.+?)\/?$ profile/rss2.php?profile_name=$1&tag=$2
41 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/?$ _rss/subscriptions.php?profile_name=$1
42 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/?$ _rss/index.php?profile_name=$1
43 RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/skip=([0-9]+)$ _rss/index.php?profile_name=$1&feed_offset=$2
45 RewriteRule ^([A-Za-z0-9]+)\/feeds\/?$ _rss/subscriptions.php?profile_name=$1
46 RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/?$ _rss/index.php?profile_name=$1
47 RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/skip=([0-9]+)$ _rss/index.php?profile_name=$1&feed_offset=$2
49 RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ _weblog/index.php?weblog_name=$1
50 ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&weblog_offset=$2
51 RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ _weblog/archive.php?weblog_name=$1
52 RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ _weblog/archive_month.php?weblog_name=$1&year=$2&month=$3
53 RewriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/?$ _weblog/friends.php?weblog_name=$1
54 ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ _weblog/friends.php?weblog_name=$1&weblog_offset=$2
55 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/weblog\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=weblog
56 RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.+?)\/?$ _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=is
57 RewriteRule ^([A-Za-z0-9]+)\/weblog\/rssnot\/(.+?)\/?$ _weblog/rss2.php?weblog_name=$1&tag=$2&modifier=not
58 RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ _weblog/view_post.php?post=$1
60 RewriteRule ^tag\/(.+?)\/?$ search/all.php?tag=$1
61 RewriteRule ^rsstag\/(.+?)\/?$ search/rss.php?tag=$1
62 RewriteRule ^tag\/(.+)/ecl\/?$ search/ecl.php?tag=$1
64 RewriteRule ^([A-Za-z0-9]+)\/friends\/?$ _friends/index.php?friends_name=$1
65 RewriteRule ^([A-Za-z0-9]+)\/foaf\/?$ _friends/foaf.php?friends_name=$1
67 RewriteRule ^([A-Za-z0-9]+)\/communities\/?$ _communities/index.php?friends_name=$1
68 RewriteRule ^community\/([0-9]+)\/?$ _communities/community.php?community_id=$1
70 RewriteRule ^([A-Za-z0-9]+)\/files\/?$ _files/index.php?files_name=$1
71 RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9]+)\/?$ _files/index.php?files_name=$1&folder=$2
72 RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ _files/download.php?files_name=$1&folder=$2&filename=$4&id=$3
73 RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/files\/rss\/?$ _rss/static.php?username=$1&userref=$2&type=files
74 RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+?)\/?$ _files/rss2.php?files_name=$1&tag=$2
76 RewriteRule ^([A-Za-z0-9]+)\/icons\/([-0-9]+)\/?$ _icons/icon.php?id=$2
77 RewriteRule ^([A-Za-z0-9]+)\/icons\/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/?$ _icons/icon.php?id=$2&constraint1=$3&size1=$4
78 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
80 RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/?$ _calendar/rss.php?username=$1
81 RewriteRule ^([A-Za-z0-9]+)\/calendar\/rss\/(.+?)\/?$ _calendar/rss.php?tag=$2
82 RewriteRule ^([A-Za-z0-9]+)\/calendar\/([0-9]+)\.html$ _calendar/view_events.php?event_id=$2
83 RewriteRule ^([A-Za-z0-9]+)\/calendar\/import\/?$ _calendar/ical_import.php
84 RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/?$ _calendar/archive.php?username=$1
85 RewriteRule ^([A-Za-z0-9]+)\/calendar\/archive\/([0-9]+)\/([0-9]+)\/?$ _calendar/archive_month.php?username=$1&year=$2&month=$3
87 RewriteRule ^([A-Za-z0-9]+)\/calendar\/?$ _calendar/index.php?context=private
88 RewriteRule ^([A-Za-z0-9]+)\/calendar\/friends\/?$ _calendar/index.php?context=friends
89 RewriteRule ^([A-Za-z0-9]+)\/calendar\/communities\/?$ _calendar/index.php?context=communities
91 # Some blogging clients probe Wordpress or MoveableType endpoints,
92 # redirect them to the Elgg xml-rpc endpoint
94 RewriteRule xml-rpc.php _rpc/RPC2.php
95 RewriteRule mt/mt-xmlrpc.cgi _rpc/RPC2.php
97 </IfModule>