Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Mon, Jul 22, 2013 at 4:24 PM, Florian Effenberger
<floeff@documentfoundation.org> wrote:
The "Share with link" feature allows us to share a directory so that
it is world-readable. The links are a bit cumbersome (e.g.

http://owncloud.documentfoundation.org/public.php?service=files&t=09db8abe6e3850ab1723fb9ea6a40972
), but we can mitigate that problem by setting up a simple redirect
like:
http://owncloud.documentfoundation.org/public


Do you have a ready to use mod_rewrite for that?

Sure -- this rule works on my test install. I put it into
owncloud/.htaccess, right after the 'RewriteEngine On' line:
RewriteRule ^shared(.*)$
public.php?service=files&t=4d2820b4fad6eac0b7624f88e01bdc53&path=/$1
[L]

(I changed the hash to the correct value for the tdf install)

This gives us pretty urls like:

https://owncloud.documentfoundation.org/shared/
https://owncloud.documentfoundation.org/shared/Conferences/2013/Milan

Cheers,
--R

-- 
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.