Gallery2 adding extra trailing backslash

jkinz

Joined: 2008-01-21
Posts: 2
Posted: Mon, 2008-01-21 14:04


Gallery version (not just "2"):2.2.2
PHP version (e.g. 5.1.6):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache
Database (e.g. MySql 5.0.32): MySQL
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): FireFox/IE

Okay so I have seen this problem a little bit, but nothing has really solved my problem. Here is my problem.

I have Gallery2 running in Drupal. Everything seems to work except for one thing. For some reason the URL's generated by Gallery2 (I would assume) for the albums I have created include a trailing backslash. http://sodaro.amoretravels.com/gallery/

However when you click the photo album you get 1 of two things. Either you get an access denied or it just refreshes the main gallery view but with new URL.

I have Clean URLs enabled in Drupal and also URL Rewrites in Gallery2, I went through and double checked the URL settings. I also saw that sometimes if you continue to include the /v/ (so that the rewrite would read gallery/v/%path%) works, but it does not work for me for some reason.

Does anyone have any idea where I would look to get this working correctly?

Here is my .htaccess in my Galler2 directory:
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /gallery2/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery2/main\.php$
RewriteRule . - [L]

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

# END Url Rewrite section

 
jkinz

Joined: 2008-01-21
Posts: 2
Posted: Tue, 2008-01-22 13:42

Does anyone have any idea what piece of code I would have to look in to get rid of the extra trailing slash? This is the last piece to the puzzle for me and I can't seem to find where I would eliminate this.