Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 3, 2012 11:58
Show Gist options
  • Save bastianallgeier/1554649 to your computer and use it in GitHub Desktop.
Save bastianallgeier/1554649 to your computer and use it in GitHub Desktop.
Kirby Default htaccess
DirectoryIndex index.php index.htm index.html
# disable directory listing
Options -Indexes
# rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# make sure to set the RewriteBase correctly
# for your domain and subfolders. Otherwise
# the installation of kirby won't work
RewriteBase /
RewriteRule ^(.*) index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment