0

So I shared a file with my owncloud server, so It gives me a link in the format:

https://myowncloudserverexample.com/owncloud/index.php/s/SOMERANDOMSTRING

The problem is that url was printed to some posters, and I need to modify the file, and the owncloud interface doesn't allow me to modify the file maintaining the link, or create a new file and modify the link.

The question is: Can associate any file to that link on my server?

I have root access and total control of the server.

Thanks

Msegade
  • 103
  • 2
  • 1
    You COULD create a redirect using .htaccess. So /owncloud/index.php/s/SOMERANDOMSTRING will redirect to https://myowncloudserverexample.com/owncloud/index.php/s/SOMEOTHERSTUFF – Orphans Oct 27 '16 at 13:03
  • @Orphans Which .htaccess should I change? I have one in /var/www and others in /var/www/owncloud , /var/www/owncloud/data, /var/www/owncloud/config and neither seems to work – Msegade Oct 27 '16 at 14:46
  • You should change the one in your DocumentRoot RedirectMatch 301 ^/owncloud/index.php/s/SOMERANDOMSTRING /redirect-here/etqwgw – Orphans Oct 28 '16 at 06:49
  • @Orphans It doesn't work, I searched for errors in the log but I can't find anything relevant – Msegade Oct 28 '16 at 11:41
  • Seems like your webserver is not looking for a .htaccess file. https://www.digitalocean.com/community/tutorials/how-to-use-the-htaccess-file – Orphans Oct 28 '16 at 14:16

0 Answers0