Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Created October 31, 2013 19:44
Show Gist options
  • Select an option

  • Save ryaan-anthony/7255644 to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/7255644 to your computer and use it in GitHub Desktop.
Options All -Indexes
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## never rewrite for existing files
RewriteCond %{REQUEST_FILENAME} !-f
############################################
## rewrite everything else to index.php
RewriteRule .* ../get.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment