htaccess.sample 646 Bytes
Newer Older
1 2
<IfModule mod_rewrite.c>
  RewriteEngine On
3

Brion Vibber's avatar
Brion Vibber committed
4 5 6 7 8 9
  # NOTE: change this to your actual StatusNet base URL path,
  # minus the domain part:
  #
  #   http://example.com/        => /
  #   http://example.com/mublog/ => /mublog/
  #
10
  RewriteBase /mublog/
11

12 13
  ## Uncomment these if having trouble with API authentication
  ## when PHP is running in CGI or FastCGI mode.
Brion Vibber's avatar
Brion Vibber committed
14
  #
15 16 17
  #RewriteCond %{HTTP:Authorization} ^(.*)
  #RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

18 19 20 21
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*) index.php?p=$1 [L,QSA]
</IfModule>
22

23 24 25 26
<FilesMatch "\.(ini)">
  Order allow,deny
</FilesMatch>