Am I missing something... redirect 404 errors to homepage
froginternet
Joined: 2011-12-12
Posts: 10
Posted: Fri, 2012-10-26 13:19
Maybe I am missing something but on G3 I cannot find how to properly redirect 404 errors to a proper 404 page or homepage. It would be hard to believe if this highly requested feature has not been addressed?
Whatever I try I get ?kohana_uri= added to the end of the file.
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-10-26 15:46
I guess there is a couple of ways to do this if .htaccess does not work.
One would be to edit modules/gallery/views/kohana/error.php to redirect to where you want.
or
edit modules/galelry/views/error_404.html or redirect from there.
That's likely because of where you're putting the redirect. It sometimes has to go in a specific section and in a specific order, depending on how it's written.
Posts: 8339
best htaccess tricks http://perishablepress.com/category/web-design/htaccess/
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 10
regular htaccess redirects do not seem to work properly in G3.
i.e
Redirecting this:
http://www.albertaeh.ca/gallery/Central-Alberta-Region---canada/
Gives me this:
http://www.albertaeh.ca/gallery/Central-Alberta-Region/Edmonton-Alberta/Borden-Park/edmonton_borden_park_15?kohana_uri=Central-Alberta-Region---Canada/Edmonton-Alberta/Borden-Park/edmonton_borden_park_15&sb=left
Whatever I try I get ?kohana_uri= added to the end of the file.
Posts: 27300
I guess there is a couple of ways to do this if .htaccess does not work.
One would be to edit modules/gallery/views/kohana/error.php to redirect to where you want.
or
edit modules/galelry/views/error_404.html or redirect from there.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1857
That's likely because of where you're putting the redirect. It sometimes has to go in a specific section and in a specific order, depending on how it's written.