Some URL redirects work, some don't
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Get system details; useful for copy/paste into G2 support forum. Gallery version = 2.2.2 core 1.2.0.4
So some files are redirecting, for example: http://www.cpforums.org/gallery/nepenthes/P1010018 (old url) It seems if it has "...gallery/albums/album**" it won't but if it is "...gallery/*******" it works fine. Thanks very much for any help |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
go to "site admin -> migrate" and read the instructions. it should say there that you need to copy the ".htaccess" contents that it shows there into a new ".htaccess" file in your g1's albums/ folder. -------------- |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Hello, I have done that. That's how some of the URLs are working, I'm guessing... Here is the .htaccess file I'm using: <IfModule mod_rewrite.c> |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Some added information, when I click one that doesn't forward (like the 2nd one in my first post) it takes me to a blank page... no error or anything.. And the URL is of the old forum. So it isn't even attempting to change it... |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you need 2 separate .htaccess files. and they have different contents. -------------- |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
I only have 1 .htaccess file listed in the admin/import... how do I find the content for the other? |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Is it possible to get help with the code, or should I call those links "dead" and move on? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
my note above is somewhat incorrect. the .htaccess contents shown in "site admin -> migrate: gallery1" is for the .htaccess file in your g1's albums/ folder. for the gallery/ folder: 1. if your new gallery/ folder, where gallery2 resides, is the same location as your gallery1 installation used to be, then you need need to go to "site admin -> url rewrite" and enable the g1->g2 redirection rule. -------------- |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
the G1->G2 Mapping option? that already is active. I don't see a "g1 -> g2 redirection rule" I've downloaded the plugin list and don't see it there either. [img]http://www.cpforums.org/gallery/d/20717-1/galleryscreen.jpg[/img] Thanks so much valiant! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
if you copied the .htaccess contents to your albums/.htaccess file, then everything should be fine. > I don't see a "g1 -> g2 redirection rule" I've downloaded the plugin list and don't see it there either. it's on the screenshot... "g1->g2 mapping" under the "Migration" heading. -------------- |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Well, the .htaccess file is supposed to be ONLY what I get as the redirect code right? Not something else in there too? Cause I do have it there... And I know the file exsistes... Here is an example: http://www.cpforums.org/gallery/albums/album06/maxima7_6_07_1 <--- old location on my server.. I have a folder "cpforums" and within that folder is "g1" and "gallery" Under "g1" is the .htaccess file. The whole contents of that file is: Quote:
<IfModule mod_rewrite.c> Either I'm seriously missing something really simple. Or there is a problem. "g1" and "gallery" should be at the same level, right? not one folder INSIDE the other? |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
I was using this: Quote:
Note that these redirects are not active until the G1 images are actually removed or moved. Omit the !-f line shown below to redirect anyway. But decided to delete the files and put the !-f line back in... And it still doesn't work. So I'm still at a loss for ideas... :-\ |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
. |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
how many rows (entries) does your database table g2_G1MigrateMap have? -------------- |
|
adnedarn
![]()
Joined: 2007-08-25
Posts: 32 |
![]() |
Hi valiant, I just deleted my past 2 entries as I give up on trying to solve this. it's such a small % of items that seem to not be fowarding I'm not too worried about it. There are 3879 G1->G2 map entries Delete All So between that difference and the 100 or so images deleted with the check_orphans and verify_albums or whatever.. that's about how many are not working I guess. Simple answer, thanks for pointing that out! It seemed there was lots more not working, but apparently I was "lucky" on coming across the ones that didn't work. |
|