Dang! I don't like that message.
|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:
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.