views:

843

answers:

3

A default Trac installation will display the WikiStart page as its home page. I'd like it to display another page. How do I do that? I was unable to find anything with Google, as any request with "Trac" in it will return links to every opensource project that uses Trac.

A: 

If your Trac installation is behind Apache, then you can use an Apache configuration directive to redirect or rename the "home page" url. For example, look at the "Alias" directive.

Glenn
Yes I am behind Apache, but is there really no way I can configure Trac itself to show a certain page when requesting /projectname/wiki?
lindelof
+3  A: 

Are you wanting to display a different wiki page, or a different kind of page? I don't know of a config option for the former, but you can use [trac] default_handler in your trac.ini to make, say, the custom query page be the default page.

Edit: Taking a quick glance over the sources, WikiStart is pretty well hard-coded as the start page for the wiki. So, short of patching Trac, I don't think you can do what you're after.

retracile
A different wiki page. By default, Trac shows the "Welcome to Trac" page. I'd like to keep that page but have another one as the default landing page.
lindelof
If you use the default_handler from trac.iniYou could create a simple plugin overloading your WikiModule Class, and then return a different page than WikiStart. But this would involve a little Python hacking.
parceval
+2  A: 

If you want to keep the "Welcome to Trac" page, have you considered simply migrating that content to a new page and then editing WikiStart? Trac documentation upgrades leave the WikiStart page unchanged (as documented here), so you aren't making trouble for yourself in that regard.

Richard Dunlap