Skip to content

Instantly share code, notes, and snippets.

@yko
Created July 2, 2010 21:10
Show Gist options
  • Save yko/461909 to your computer and use it in GitHub Desktop.
Save yko/461909 to your computer and use it in GitHub Desktop.
AddHandler cgi-script .pl
Options +ExecCGI
IndexIgnore *
DirectoryIndex script.pl
RewriteEngine on
RewriteRule ^$ script.pl [L]
RewriteRule ^/$ script.pl [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ script.pl/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment