Forum

UrlToolkit for Wallabag

Nicolas
3 March 2018, 22:29
Hello,

I wanted to try Wallabag: https://wallabag.org/en

Rewrite rules and regular expressions are still feeling like magic to me, but after looking through the Urltoolkit collections from the HOWTO, I found that some parts of Wallabag rewrite rules were like those of Cakephp.

As far as I have tested (saving articles, saving articles behind a paywall and reading them), with this Urltoolkit, Wallabag is working fine with Hiawatha as a webserver:

UrlToolkit {
ToolkitID = wallabag
RequestURI exists Return
Match ^/bundles Return
Match .* Rewrite /app.php
}


I don’t know if the other parts of Wallabag rewrite rules are covered by this Urltoolkit or Hiawatha itself. Those rules are on this page: https://doc.wallabag.org/en/admin/installation/virtualhosts.html

I have two questions :
- Does Hiawatha need a rule to replace Options -MultiViews? I don’t think so, because in all the topics about Rewrite rules mentioning this option, it was never specified inside an Hiawatha toolkit (but I’m not sure).

- Is [code]Match ^/bundles Return[code] disabling the rewrite rules for the bundles directory ? It doesn’t seem important but I wanted to try to cover all rules.
Hugo Leisink
4 March 2018, 13:02
I have not used Apache in a very long time, so I don't know what "Options -MultiViews" does.

The "Match ^/bundles Return" stops the processing of other rules when the requested file starts with /bundles. If that's a directory, then the rewrite rule "Match .* Rewrite /app.php" will not be applied to the files in that directory.
Nicolas
7 March 2018, 21:18
Thank you

I'll ask the creator of Wallabag about "Options -Multiviews".
This topic has been closed.