Pretty URLs

You need to set up your web server so that using the URL of the web site plus the name of the page causes the page to be shown, i.e. URLs of the form BaseUrl/Foo are mapped to the incantation required to view web page Foo. This makes URLs pointing into the web site much more readable (and easy to copy and type).

Apache

Put the following in the .htaccess file of the directory specified by DocumentRoot in the site configuration, filling in the value of ScriptUrl where indicated. For rewrites to work the directory in question has to be in the scope of an AllowOverride FileInfo directive. See the Apache documentation for the gory details.

# Use DarkGlass for all URLs
RewriteEngine on
RewriteRule ^.*$ <ScriptUrl>/%{REQUEST_URI}

In the cgi-bin directory, add the following .htaccess file:

RewriteEngine off
Options +ExecCGI
SetHandler cgi-script

Last updated 2024/10/29