already modified url redirect, now I can't g1 to g2

savo

Joined: 2004-09-20
Posts: 28
Posted: Wed, 2007-08-22 16:52

So I made a few changes to gallery2. I changed the url redirect on paths to "show item" I changed it from v/%path%...to just %path%.

now I cannot enable the G1->G2 mapping? It's hard coded %path%.

Is there a way to modify the migration settings to make this work so i can leave the "v/" out of the show item and be able to leave that part %path%? The reason I want to leave that out is because I already made lots of links to gallery 2.

Hope I didn't make this too confusing. Thank you in advance to anyone that can help.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-08-23 12:14

No.

No, if you have the G2 installation in the same place where G1 used to be (e.g. at http://example.com/gallery/), you can't remove the v/ prefix for ShowItem URLs.
G2 can't tell if "gallery/albumname/foo" is a G1 URL that needs to be redirected to "albumA/albumB/albumname/foo" or if it's a G2 URL.
Of course you can solve this technically, but you'll have to change some code in G2's URL rewrite module to make this happen.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
savo

Joined: 2004-09-20
Posts: 28
Posted: Thu, 2007-08-23 13:43

I do have them in separate locations. In fact i have ... "photos.foo.com" as gallery2 and I have "foo.com/gallery" as gallery1. Also, they both sit in different directories still. gallery and gallery2.

I wonder if my solution could be to manually put in redirects for the old gallery for every folder and then turn on new permalinks in the new gallery2?

 
savo

Joined: 2004-09-20
Posts: 28
Posted: Thu, 2007-08-23 14:27

Does anyone have a suggestion to how I could re-enable the "v/" and then use a new redirect to fix all the links for the new gallery2...so if I've already linked to them on websites/emails/ect., I could leave them the same, but they would not be redirected to "v/".

this would allow me to get the links to work between the old gallery and the new without messing up any of the old gallery links or the new gallery links.

Thanks in advance to anyone that has an idea.