Edgewall Software

Version 1 (modified by daniel, 16 years ago) ( diff )

Prettier URLs for Trac

If you would like the url to be like:


or (maybe with a subdomain):


this is one way, using mod_rewrite (in Apache):

load the module mod_rewrite, then, place this in your apache config: (if you have subdomain, inside a VirtualHost)

RewriteEngine On
<Location "/cgi-bin/trac.cgi">
  SetEnv TRAC_ENV "/path/to/trac/env"

ServerName <hostname>
Alias /trac "/usr/share/trac/htdocs"

ScriptAlias /cgi-bin /path/to/cgi-bin
RewriteRule ^/$ /cgi-bin/trac.cgi [R]

Note: This is actually not necessary. You can just use ScriptAliasMatch directly. I'll add an example later. — DanielLundin

See also: TracInstall, TracMultipleProjects

Note: See TracWiki for help on using the wiki.