Kwiki::CoolURI - makes the Kwiki url cleaner


Kwiki-CoolURI documentation  | view source Contained in the Kwiki-CoolURI distribution.

Index


NAME

Top

Kwiki::CoolURI - makes the Kwiki url cleaner

SYNOPSIS

Top

 $ cd /path/to/kwiki
 $ kwiki -add Kwiki::CoolURI

DESCRIPTION

Top

Changes the internal links that Kwiki create. Instead of /index.cgi?SandBox, it will just be /SandBox.

It only changes the url for the display plugin. Edit will still look like /index.cgi?action=edit&page_name=SandBox.

Configuration

Kwiki needs to be able to read request on the form /SandBox. With Apache this can be solved by putting the following mod_rewrite config in a .htaccess file in the directory where index.cgi is located.

 RewriteEngine  on
 RewriteCond    $1 !(css/|icons/|index.cgi|local/|palm90.png|plugin/|theme/)
 RewriteRule    ^(.*)$ index.cgi?action=display&page_name=$1 [L]

If you add new top directories, or files, that you still want to be readable, you have to add them in the RewriteCond.

BUGS

Top

Does not currently fix the redirect that for instance happens after an edit.

Should use new Kwiki 0.37 hooks.

The mod_rewrite config could probably be better.

The code is just copied from the original methods and slightly changed to output different urls. If Kwiki had a way to configure what the link urls should look like, this plugin wouldn't be needed.

AUTHOR

Top

Jon Åslund

COPYRIGHT

Top

SEE ALSO

Top

Cool URIs don't change http://www.w3.org/Provider/Style/URI.html


Kwiki-CoolURI documentation  | view source Contained in the Kwiki-CoolURI distribution.