]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - htaccess.sample
Merge branch 'master' of gitorious.org:social/mainline
[quix0rs-gnu-social.git] / htaccess.sample
1 <IfModule mod_rewrite.c>
2   RewriteEngine On
3
4   # NOTE: change this to your actual StatusNet base URL path,
5   # minus the domain part:
6   #
7   #   http://example.com/        => /
8   #   http://example.com/mublog/ => /mublog/
9   #
10   RewriteBase /
11   #RewriteBase /mublog/
12
13   ## Uncomment these if having trouble with API authentication
14   ## when PHP is running in CGI or FastCGI mode.
15   #
16   #RewriteCond %{HTTP:Authorization} ^(.*)
17   #RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
18
19   RewriteCond %{REQUEST_FILENAME} !-f
20   RewriteCond %{REQUEST_FILENAME} !-d
21   RewriteRule (.*) index.php?p=$1 [L,QSA]
22
23   ## You can also use PATHINFO by using this RewriteRule instead:
24   # RewriteRule (.*) index.php/$1 [L,QSA]
25 </IfModule>
26
27 <FilesMatch "\.(ini)">
28   # For mod_access_compat in Apache <2.4
29   Order allow,deny
30
31   # Use this instead for Apache >2.4 (mod_authz_host)
32   # Require all denied
33 </FilesMatch>