URL Redirection questions & migration from gallery1

gossamer

Joined: 2011-01-07
Posts: 47
Posted: Sun, 2011-01-09 04:57

Hi,

I've successfully imported a number of gallery1 albums to my new gallery2 installation, and have a few questions. I'm using gallery2 v2.3.1 on FC14.

After the installation, there was an explanation about URL redirection, but it doesn't explain WHY I would need to do that, and under what circumstances. It appears to work fine as it currently stands, without the redirection. This is the .htaccess file text that it prints and says I should create:

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

I've created the gallery1 directory with all gallery1 albums in /home/gallery2, where all the gallery2 photos and albums reside. Ideally I'd like to have it actually migrate the contents of the gallery1 directory into the gallery2 albums directory, so I don't have two different directories full of albums.

Is it possible to actually move the gallery1 albums into the gallery2 album tree?

I'm fully able to view albums from gallery1 after the import, so do I need the .htaccess redirect stuff?

Also, on a related note, my gallery2 site is currently located at http://mysite.example/gallery2/. How can I have instead located at the root, as in http://mysite.example/ ?

I've installed gallery2 via rpm, so the apache gallery2 config file is /etc/httpd/conf.d/gallery2.conf. I tried using a standard apache redirect, but it seems to create some type of loop, and I really don't have much familiarity with apache to figure this one out.

Thanks,
Alex