Dang! I don't like that message.
BillWill
Joined: 2008-08-28
Posts: 205 |
Posted: Sun, 2012-07-08 13:25 |
The first couple of times I saw that message, it was cute, but it isn't consistent with the general tone of my site. So today, I dug around and found how to get rid of it. Posting here in case others want to do so. The only drawback I can see is that you have to remember to do this every time you upgrade, since it is part of the core. If these files have some sort of troubleshooting value, you can always comment out the redirect while you're tracking down issues. It might be more elegant to modify the error.php file in the modules/gallery/views/kohana directory, but anything with kohana in it scares me. There are four files that send this out, all in the same directory: modules/gallery/views/ At the top of each pages, I inserted the following: <?php // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.mysite.com/gallery3/"); exit(); ?> I had considered forwarding them to my site's custom 404 page for consistency, but since upgrading from gallery2, I have broken incoming links all over the place that just want to see the album, which is why I just send them to the main page of the gallery instead. I did not insert this into the error_admin.html.php file, because well, it can tell me stuff! If any coders see some unforeseen consequence to doing this, please let us know. =========================== |
|
Posts: 421
Try this man: http://gallery.menalto.com/node/104681
Posts: 205
thanks, bigu_c
So many resources here, sometimes hidden gems like this get missed.
===========================
Version: 3.0.4 (Ricochet)
Operating system: Linux 2.6.18-194.11.4.el5
Apache/2.2.21
PHP: 5.3.8
MySQL: 5.0.95
Clean Canvas theme
Graphics Toolkit = ImageMagick
Albums: 205
Photos: 70736