Options -Indexes Options +FollowSymLinks Options +ExecCGI DirectoryIndex hope.cgi AddHandler cgi-script .cgi RewriteEngine on ################################################################## # SET ME: You need to set RewriteBase to the path part of your install URL RewriteBase /~bjorn/hope/ ################################################################## # Pass the Authorization header in the HTTP_AUTHORIZATION variable RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Don't rewrite URIs that start with _. Hope uses those for static files # such as style sheets and scripts. RewriteRule ^_ - [L] # Don't rewrite URIs that already contain the Hope program name. RewriteRule ^hope.cgi - [L] # Rewrite all other URIs to PATH_INFO for Hope. RewriteRule ^(.*)$ hope.cgi/$1 [NS,L] # Deny access to createdb, in case the user happend to leave it on the server. Order Deny,Allow Deny from all