Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (45 sloc) 1.76 KB
# 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>