-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.htaccess-example
55 lines (45 loc) · 1.76 KB
/
.htaccess-example
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Foafpress Configuration for Apache
#
# @category FOAFPRESS
# @package Foafpress-Configuration
#
# @author Michael Haschke, http://eye48.com/
# @license http://www.opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL)
#
# @link http://foafpress.org/
#
# Please use this template to configure your Apache webserver for Foafpress,
# save your changes to .htaccess
#
# Please replace '/path/to/index.php' by the base URI of the Foafpress index.php
# bootstrap file on your server. For example if you installed Foafpress in your
# webroot under ./foafpress (e.g. /var/www/foafpress) then the base URI would be
# /foafpress/index.php -- same goes with '/path/to/' what would become '/foafpress'.
<IfModule mod_negotiation.c>
# prevents Apache's automatic file negotiation
Options -MultiViews
</IfModule>
<IfModule mod_dir.c>
# forces slashes to directory uris (set this to off, if your resource uri do no have an ending slash)
DirectorySlash On
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /path/to/
### Redirect all other stuff the Sandbox
# for real rdf files
RewriteCond %{REQUEST_URI} \.(rdf|tt|nt)$ [NC]
RewriteCond %{REQUEST_FILENAME} -F
RewriteRule . /path/to/index.php [L,QSA]
# and for virtual files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /path/to/index.php [L,QSA]
# and for existing directories
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /path/to/index.php [L,QSA]
# Redirect to Sandbox Publisher
# Fallback for PHP running as CGI
# RewriteRule . /path/to/index.php?request=%{REQUEST_URI} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L,QSA]
</IfModule>