Edgewall Software

Changes between Version 4 and Version 5 of TracPrettyUrls


Ignore:
Timestamp:
Jan 12, 2005, 5:24:37 PM (19 years ago)
Author:
tab@…
Comment:

add a small configuration example for ScriptAliasMatch

Legend:

Unmodified
Added
Removed
Modified
  • TracPrettyUrls

    v4 v5  
    2727}}}
    2828
     29Or using ScriptAliasMatch you can redirect all request coming to / without rewriting the URL to the user:
    2930
    30 '''Note:''' This is actually not necessary. You can just use !ScriptAliasMatch directly. I'll add an example later. -- DanielLundin
     31{{{
     32SetEnv TRAC_ENV "/var/to/trac/env"
     33
     34ScriptAliasMatch ^/(.*) /path/to/trac.cgi/$1
     35}}}
    3136
    3237'''Also Note:''' Another simple way to do this is to put a redirect in {{{/usr/share/trac/htdocs}}}, such as: