[Moin-user] Using a redirect script for external links

Ry4an Brase ry4an-moin at ry4an.org
Wed Mar 9 22:26:11 EST 2005

It's not earth shattering, but I found I could very easily get MoinMoin
to route all external http links through a redirect script using these
lines in my moin_config.py file:

url_mappings = {
    'http://': 'http://myhost/redirect/?http://',
    'https://': 'http://myhost/redirect/?https://'

Routing links through a redirect script allows one to get stats on which
URLs people use to exit and also hides the referrer information from the
link destination's logs.  That's especially nice in my case as we use an
internal corporate wiki, and we don't necessarily want people outside
the company seeing our page names -- as wiki URLs can be quite

For the redirect script I used this one:


Though, there are million out there, and they're trivial to write.

Ry4an Brase - http://ry4an.org/unblog/

More information about the Moin-user mailing list