wikier/rdfohloh/master/.htaccess - Htaccess File

wikier/rdfohloh/master/.htaccess

Options -Indexes
Options +FollowSymLinks
ErrorDocument 404 /index.php
DirectoryIndex index.php

<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault A1209600
  ExpiresByType text/html A1
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /

  RewriteRule ^ns resources/rdfohloh.rdf [R=303,L,QSA]

  RewriteCond %{HTTP_ACCEPT} application/rdf+xml
  RewriteCond %{REQUEST_URI} ^/about
  RewriteRule ^(.*)$ http://www.w3.org/2007/08/pyRdfa/extract?uri=http://rdfohloh.wikier.org/$1 [R=303,L,QSA]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?uri=$1 [L,QSA]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_ACCEPT, REQUEST_FILENAME, REQUEST_URI

Comments

Apache