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

5
  • 1
    You COULD create a redirect using .htaccess. So /owncloud/index.php/s/SOMERANDOMSTRING will redirect to myowncloudserverexample.com/owncloud/index.php/s/SOMEOTHERSTUFF Commented Oct 27, 2016 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 Commented Oct 27, 2016 at 14:46
  • You should change the one in your DocumentRoot RedirectMatch 301 ^/owncloud/index.php/s/SOMERANDOMSTRING /redirect-here/etqwgw Commented Oct 28, 2016 at 6:49
  • @Orphans It doesn't work, I searched for errors in the log but I can't find anything relevant Commented Oct 28, 2016 at 11:41
  • Seems like your webserver is not looking for a .htaccess file. digitalocean.com/community/tutorials/… Commented Oct 28, 2016 at 14:16

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.