Album Links Redirect Incorrectly

Genphlux

Joined: 2007-12-06
Posts: 1
Posted: Thu, 2007-12-06 19:44

Drupal 5.3
Gallery 2.2.2
PHP 4.4.4

I have followed all of the integration instructions step-by-step and even wiped everything and started over, but I have this problem every time and I can't seem to figure it out. I am probably missing something pretty obvious; I just need someone to help me point it out.

I get the integration done and the gallery link in my Primary Links and everything looks fine. I create an album, which works OK, but when I go back to the main Gallery page and click on the album, it redirects to my Drupal front page! EVERY TIME. When I hover over the album link, I can see that it is correct. I added the folder path for Gallery2 into the URL Rewrite section in the Gallery Site Administration page, and that part seems to work OK.

I'm not sure if it is related, but under the "Setup" tab of the URL Rewrite section in Gallery2 Admin, it asks for the paths to my .htaccess file. If I provide those and click Save, I suddenly cannot access my site anymore due to a 500 Internal Server Error message. When I check my .htaccess file, I see what has been added, which is simply added to the top of the file and can easily be manually removed and saved. This brings my site back online, but the Gallery album links issue remains.

This is the snippet of code that the URL Rewrite setup section adds to my .htaccess file:

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /www.genphlux.net/tnairsoft/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/www.genphlux.net/tnairsoft/index\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /www.genphlux.net/tnairsoft/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/www.genphlux.net/tnairsoft/index\.php$
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /www.genphlux.net/tnairsoft/v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/www.genphlux.net/tnairsoft/index\.php$
RewriteRule . /www.genphlux.net/tnairsoft/index.php?q=gallery&g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /www.genphlux.net/tnairsoft/gallery2/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/www.genphlux.net/tnairsoft/index\.php$
RewriteRule . /www.genphlux.net/tnairsoft/index.php?q=gallery&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /www.genphlux.net/tnairsoft/w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/www.genphlux.net/tnairsoft/index\.php$
RewriteRule . /www.genphlux.net/tnairsoft/index.php?q=gallery&g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
</IfModule>

# END Url Rewrite section

Any help would really be appreciated.

Thanks...

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Sun, 2008-01-13 23:34

Is "/www.genphlux.net/tnairsoft/" really the server path to your installation or the public path?