Pretty url for shared links?


#1

Hello,

One of the main features that I use is the gallery app. I would like
to publish (share with the world) one folder as online gallery. I can
share the folder/gallery with a link, but
https://wolke.maennerchor-kirchseeon.de/s/8ZoTfXWD2sHLLdw really
doesn’t look nice :worried:

Is there a way to have that as
https://wolke.maennerchor-kirchseeon.de/gallery or something similar?

Of course, I could use apache to redirect it… but does that work
well? I’d rather create that link with a nicer name.

Thanks for your input!


#2

The Apache redirect works fine for me:

# this one for links shared from Nextcloud Files
Redirect 301 /s /nextcloud/index.php/s

In your case, the rule would be

Redirect 301 /gallery /s/8ZoTfXWD2sHLLdw


#3

I see… Where would you add this? /etc/apache2… or in the nextcloud folder’s .htaccess?


#4

Well, i am not sure a 301 redirect is a solution. Is heavy to do, need to be done manually for all share links.
Also, as nextcloud use mod_apache rewrite to make url nicers this may interfer, but i am not sure.

Have a look at:

Some king od SEO optimisation would be nice.