## allow access via */
AddHandler cgi-script .pl 
Options +ExecCGI
DirectoryIndex podwiki.pl

<Files ~ "\.(conf)$">
  Order allow,deny
  Deny from all
</Files>

## uncomment this to run podwiki under mod_perl
#<IfModule mod_perl.c>
#    <Files ~ "\.(pl)$">
#	SetHandler perl-script
#	PerlHandler Apache::Registry
#	Options ExecCGI
#	allow from all
#	PerlSendHeader On
#    </Files>
#</IfModule>

## uncomment this to rewrite page requests to indexable uris
## maybe you have to modify the regex to match your installation
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^([a-zA-Z0-9\-\_]+)$   /podwiki.pl?page=$1  [PT]
    RewriteRule ^([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_]+)$ /podwiki.pl?page=$1&state=$2 [PT]
    RewriteRule ^([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+)$ /podwiki.pl?page=$1&state=$2&$3=$4 [PT]
    RewriteRule ^([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+)$ /podwiki.pl?page=$1&state=$2&$3=$4&$5=$6 [PT]
    RewriteRule ^([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+);([a-zA-Z0-9\-\_\.]+)$ /podwiki.pl?page=$1&state=$2&$3=$4&$5=$6&$7=$8 [PT]
</IfModule>

