G1 -> G2 imported just fine, G1 URL's don't work though...
jeepinjason
Joined: 2005-10-13
Posts: 5 |
![]() |
I'm currently in the process of migrating one of my G1 installs to G2.2.1 and running into a bit of trouble. The install went smoothly, and the importing of all my G1 albums and images went smoothly. The problem is all my old G1 URLs are broken now; they're not redirecting to the new G2 pages. The G2 install is in the same directory that my G1 used to be in. I moved my G1 install to a new directory as per the migration instructions, then installed G2 under the directory G1 used to be in, then imported from my G1 install. Yes, I've read: http://codex.gallery2.org/Gallery2:migration#Preserving_Gallery_1_URLs I've been staring at this stuff for 3 hours now trying to figure out why it's not working and for the life of me I can't figure it out... any help would be greatly appreciated. Old/Original G1 install (used to be under /photos): New G2 install: example non-working G1 URL: http://jeepin.net/photos/albums/more/100_2269.jpg G2 can write to .htaccess just fine. Here's the contents of /photos/.htaccess: ============================================= RewriteBase /photos/ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{THE_REQUEST} /photos/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .) # END Url Rewrite section Gallery version = 2.2.1 core 1.2.0.1 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you need to differentate between 2 things: You've successfully enabled the G1->G2 redirection for #2. But you still need to enable redirection for #1. create a albums/ folder in your photos/ folder and in there, create a .htaccess file and copy the contents shown in "site admin -> gallery1" to that 2nd .htaccess file. -------------- |
|
jeepinjason
Joined: 2005-10-13
Posts: 5 |
![]() |
EXCELLENT! That did the trick. I figured it had to be something simple like that. I'd created the necessary .htaccess file already, it was just in the wrong directory: I had it under the albums/ directory in my G1 install (ie: g1/albums/) instead of under the G2 install. Once I created photos/albums/ and moved the .htaccess file there, it worked like a champ. And that also enabled redirects for the album URLs too. Thank you very much. |
|