nfriend/wiki/master/wiki/.htaccess - Htaccess File

nfriend/wiki/master/wiki/.htaccess

ErrorDocument 404 /404.html

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^wiki.nathanfriend.com$
  RewriteRule ^(.*)?$ http://wiki.nathanfriend.io/$1 [R=301,L]

  RewriteCond %{REQUEST_URI} !.(?:css|png|jpg|jpeg|gif|js|php)$ [NC]
  RewriteRule ([A-Za-z0-9]+) index.html?page=$1 [NC]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_URI

Comments

Apache