Skip to content

Instantly share code, notes, and snippets.

@yko

yko/.htaccess Secret

Created November 28, 2010 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yko/8e6a733ffe3ce2f5187f to your computer and use it in GitHub Desktop.
Save yko/8e6a733ffe3ce2f5187f to your computer and use it in GitHub Desktop.
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex months.cgi
RewriteEngine on
RewriteCond %{REQUEST_URI} img|css
RewriteRule ^(.*) $1 [L]
RewriteRule ^months.cgi/ - [L]
RewriteRule ^(.*)$ months.cgi/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment