public
Fork of ushahidi/Ushahidi_Web
Description: Ushahidi is a platform that crowdsources crisis information, allowing anyone to submit crisis information through text messaging using a mobile phone, email or web form.
Homepage: http://www.ushahidi.com
Clone URL: git://github.com/gabelula/Ushahidi_Web.git
Ushahidi_Web / .htaccess
100644 29 lines (21 sloc) 0.731 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Turn on URL rewriting
RewriteEngine On
 
# Installation directory
RewriteBase /ushahidi
 
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]
 
# Prevent schedulers from being accessed remotely
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
RewriteRule ^.*/scheduler/.*$ - [F,L]
 
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
 
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
 
# Protect the htaccess from being viewed
<Files .htaccess>
order allow,deny
deny from all
</Files>
 
# Don't show directory listings for URLs which map to a directory.
Options -Indexes