pretty URLs in twiki

TWiki normally has long (somewhat ugly) urls like this:

http://one-shore.com/twiki/bin/view/TWiki/WelcomeGuest

In order to make them look like this:

http://one-shore.com/wiki/Twiki/WelcomeGuest

change your twiki.conf file to look like the following:


ScriptAlias /wiki/bin/         "/var/www/twiki/bin/"

RewriteEngine on
RedirectMatch ^/wiki/bin/view/(.*) /wiki/$1 [L]

Alias /wiki/pub "/var/www/twiki/pub"
Alias /wiki "/var/www/twiki/bin/view"

Note that the paths used above (such as /var/www/twiki) are dependant on your own installation path.  Also note that this is not the whole twiki.conf file (which itself might be named something else like ‘twiki_http_conf’.  One more note, using a url path /twiki (instead of /wiki) won’t work for reasons explained here:

http://twiki.org/cgi-bin/view/TWiki/ShorterUrlCookbook#Option_1_Use_overlapping_aliases

And another note.  Configure is accessed like so:

http://one-shore.com/wiki/bin/configure

One thought on “pretty URLs in twiki

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s