G1 -> G2 rewrite issues

chicken12

Joined: 2008-03-28
Posts: 9
Posted: Tue, 2010-03-23 03:39


G2 version: 2.3.1
G1 version: 1.5.10
--
PHP version 5.2.13
Webserver Apache 2.2.3
Database MySQL 5.1.42
Operating system CentOS 5.4 x86_64
Browser IE 8 or Firefox 3.6

I am trying to help a friend migrate from G1 to G2 2.3.1. The import and everything went fine. All the galleries are viewable and seem to be working fine. The problem is with the rewriting rules.

G2 is installed in the same directory as G1 was. I enabled the G1 -> G2 rewrite rule in the URL Rewrite module and put the following .htaccess file in the albums directory.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !gallery_remote2.php
RewriteRule (.*)$ /main.php?g2_controller=migrate.Redirect&g2_path=$1 [QSA]
</IfModule>

So with this configuration the old G1 links directly to pictures like
http://www.xyz.com/albums/Parts/pic1.jpg work fine.

Also links to albums like
http://www.xyz.com/Parts works fine also.

The problem is with links to the albums that are not the simple names like
http://www.xyz.com/view_album.php?set_albumName=Parts do not work anymore. We just get an error 404.

Any ideas on how to fix this. I digged through the forums and support pages and did not find anything on this. Any help is appreciated. Thanks!!