the hotlink on the “web size” becomes a hotlink on the original
the hotlink on the HD no longer works
the hotlink on the thumbnail no longer works
To solve this issue Piwigo tries to create or modify the .htaccess file on the root of your installation. This file
contains some url rewrite rules informing your host that links to pictures had changed.
If for some reason Piwigo can't create or modify the file you will have to edit it manually. Before do that think if you need it : if you are sure nobody hotlinks your pictures you can just ignore the following steps.
First of all, navigate to your Piwigo installation folder with a FTP client
If you don't see a file named .htaccess (with the first dot) create it
Now open this file with a text editor like Notepad (not complex a editor like Microsoft Word)
If it's a previously existing file, be careful there is not RewriteEngine off into it, otherwise you have to modify it into RewriteEngine on or the following will break your website.
Add it the .htaccess file these lines with some modifications :
on lines 5 and 6 modify thumbnail by the content of your local $conf['dir_thumbnail'] if you have one
on lines 5 and 6 modify TN\- by the content of your local $conf['prefix_thumbnail'] if you have one
on lines 13 and 15 modify localhost by your hostname without http or www (example: my\-website\.com)
CAUTION: if you have hyphens in all these values prepend them with a anti-slash (TN- becomes TN\-), you must also escape dots