On Mon, Jul 22, 2013 at 4:24 PM, Florian Effenberger
<[email protected]> 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: [email protected]
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

Reply via email to