From: Emmanuel E. <ke...@ki...> - 2015-08-02 15:55:33
|
Dear Daniel On 02.08.2015 17:33, Daniel Krol wrote: > Thank you Emmanuel. I'm not very familiar with Apache mod_rewrite, but I > don't think that's what I'm looking for. To be more specific, the way > I've got it working so far, if I point the browser to: > > /kiwix/ > > I expect to see the library, and I do. However if I click on Wiktionary, > it takes me to: > > /wiktionary_en_all_2015-07/ > > rather than: > > /kiwix/wiktionary_en_all_2015-07/ > > This is already a problem. I could create a rewrite rule to make > Wiktionary display at /wiktionary_en_all_2015-07/, but that defeats the > purpose of what I'm trying to do. I want to keep all of Kiwix under > /kiwix/, and other things under other sub-paths. Does this make sense? I > believe that I need to actually edit Kiwix to make it render the URLs > differently. If anything, I would want mod_substitute, though that's a > rather blunt approach which I probably don't want to take. I'd rather > modify Kiwix. > > So, my question is, how hard would the necessary changes in Kiwix be? This is for sure not trivial, but also not so complicated *if you have average C++ and GNU tools compilation skills*. I guess 0.5-1 FT. I see only two approaches to achieve to do this: (1) - Make the content URL root path configurable at kiwix-serve call (bad) (2) - make all paths relatives (good) (2) is the better solution and this would be an improvement to have it working that way. That said, I'm not sure about all the places where we have absolute paths. We have for sure: the library page, the navbar and maybe also a few URLs in the content (not sure I have already removed all of them). Regards Emmanuel -- Kiwix - Wikipedia Offline & more * Web: http://www.kiwix.org * Twitter: https://twitter.com/KiwixOffline * more: http://www.kiwix.org/wiki/Communication |