This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Migrating from Gallery and vice versa
Olivier Paroz edited this page Dec 6, 2015
·
2 revisions
If you're migrating from one Gallery/Pictures app to another, your shared links will stop working, unless you tell your web server where to redirect the user.
Add one of the following rules to the .htaccess file located in your ownCloud web root. Kudos to Éric Seigne.
For ownCloud 6-8.1
RewriteRule ^index.php/apps/gallery/public/(.*) https://YOURDOMAIN/index.php/apps/galleryplus/s/$1
For owncloud 8.2+
RewriteRule ^index.php/apps/gallery/s/(.*) https://YOURDOMAIN/index.php/apps/galleryplus/s/$1
For owncloud 8.2+
RewriteRule ^index.php/apps/galleryplus/s/(.*) https://YOURDOMAIN/index.php/apps/gallery/s/$1
Contribution welcome
In case you've deleted the original Gallery app without disabling it, you can run a command from the cli to fix the problem.
# sqlite3 /var/www/html/owncloud/data/owncloud.db
sqlite> UPDATE oc_appconfig SET configvalue = 'no' WHERE appid = 'gallery' and configkey = 'enabled';
UPDATE oc_appconfig SET configvalue = 'no' WHERE appid = 'gallery' and configkey = 'enabled';
- General
- Installation
- Configuration
- OCC commands
- Developers