Gallery2 to Gallery3 rewrite - Error: File not found for all g2/map?path= queries
chrisnsd
Joined: 2013-05-06
Posts: 4 |
![]() |
I've completed my gallery2 import on a new gallery3 site and have been trying to get the g2/map to properly redirect from the old gallery to the new one. Unfortunately every entry I try using the rewrite from gallery2 returns a 404. For this example I'm using the 2012 album: Kohana_404_Exception [ Page Not Found ]: Gallery2 URL: /gallery/2012 var/log shows the following error: --- error: File not found: g2%2Fmap%3Fpath%3D2012 I've got the g2 import module enabled, but I'm wondering if there is something else needed? My .htaccess for gallery3 is as follows: <IfModule mod_rewrite.c> If I look in the database, I see the following for the g2map: Which does seem to match up with the 2012 album: |
|
chrisnsd
Joined: 2013-05-06
Posts: 4 |
![]() |
We week with no suggestions doesn't bode well for the future of this project |
|
tempg
Joined: 2005-12-17
Posts: 1857 |
![]() |
If the only change you made was the name of the folder, you should just skip over the whole mapping thing and use a rewrite. More to your point, did you read the instructions for import? It specifically says: http://codex.galleryproject.org/Gallery3:Modules:g2_import chrisnsd wrote:
We week with no suggestions doesn't bode well for the future of this project Uhm, yeah. |
|
chrisnsd
Joined: 2013-05-06
Posts: 4 |
![]() |
Hi tempg, thanks for the suggestions. I think you are correct and a rewrite without the mapping will be the easiest way to resolve. One thing to note, the old URLs on items is different than new URLs (e.g. G2 item is /album/photo.extension.html, G3 is /album/photo). Do you suggest just removing any instances of ".jpg.html" in the URL via rewrite, or is that going to break some other functions? |
|
tempg
Joined: 2005-12-17
Posts: 1857 |
![]() |
If you changed the folder name, that wouldn't matter; make the change in the old folder's htaccess file and it won't affect anything in the new folder. Having said that, I don't think the making that change with rewrite will cause any issues, but if it does result in something going wrong, just change it back. (Backups are golden.) |
|
chrisnsd
Joined: 2013-05-06
Posts: 4 |
![]() |
For anyone stuck in the same situation, the following .htaccess allowed me to redirect anyone going to /gallery to the new /photos URL, as well as remove .jpg.html from any old g2 URLs for use in gallery3: <IfModule mod_rewrite.c> |
|