Htaccess File

medic/SMSSync/medic/smssync.ushahidi.com/.htaccess

REQUEST_FILENAME, REQUEST_URI
# Turn on URL rewriting only when mod rewrite is turn on

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /smssync.ushahidi.com
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
#</IfModule>

# 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

#Follow symlinks
Options +FollowSymlinks
Exit mobile version