There is a mod_rewrite in the .htaccess located in the /gallery folder which is the old version. The code that is supplied is in the .htaccess located in the /gallery2.3 folder. Gallery2.3 is the folder the gallery operates out of now.
When I looked for the query I tested there were 6 matches and they all were in the gallery2.3 htaccess.
Here is the code on gallery2.3 that was supplied.
- Code: Select all
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On
RedirectMatch 301 ^/gallery2.3/(albums.php|index.html)$ /gallery2.3/main.php
RewriteBase /gallery2.3/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery2.3\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery2.3/main\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /gallery2.3/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2.3/main\.php$
RewriteRule . /gallery2.3/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery2.3/v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2.3/main\.php$
RewriteRule . /gallery2.3/main.php?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery2.3/w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2.3/main\.php$
RewriteRule . /gallery2.3/main.php?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /gallery2.3/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2.3/main\.php$
RewriteRule . /gallery2.3/main.php?g2_path=%1 [QSA,L]
RewriteCond %{QUERY_STRING} ^set_album(.+)$
RewriteRule ^.+$ /gallery2.3/main.php? [R=301,L]
</IfModule>
# END Url Rewrite section
Here are the matches that matched the query from the log file:
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2485: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:35 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a0090e8/initial] (4) RewriteCond: input='GET /gallery2.3/v/travel_7/chryslermuseum/IMG_7488.jpg.html?full=0 HTTP/1.1' pattern='/gallery2.3/v/([^?]+)(\?.|\ .)' => matched
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2486: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:35 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a0090e8/initial] (4) RewriteCond: input='/gallery2.3/v/travel_7/chryslermuseum/IMG_7488.jpg.html' pattern='!/gallery2.3/main\.php$' => matched
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2502: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:35 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a0728a0/initial/redir#1] (4) RewriteCond: input='GET /gallery2.3/v/travel_7/chryslermuseum/IMG_7488.jpg.html?full=0 HTTP/1.1' pattern='/gallery2.3/v/([^?]+)(\?.|\ .)' => matched
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2527: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:38 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a010100/initial] (4) RewriteCond: input='GET /gallery2.3/d/15104-2/IMG_7488.jpg HTTP/1.1' pattern='/gallery2.3/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)' => matched
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2528: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:38 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a010100/initial] (4) RewriteCond: input='/gallery2.3/d/15104-2/IMG_7488.jpg' pattern='!/gallery2.3/main\.php$' => matched
/private/var/tmp/folders.501/Cleanup At Startup/FtchBBTemp/rewrite_log.txt:2535: 0.0.0.0.0.0 - - [24/Dec/2008:15:48:38 --0700] [www.theherbsplace.com/sid#9dd0090][rid#a007a38/initial/redir#1] (4) RewriteCond: input='GET /gallery2.3/d/15104-2/IMG_7488.jpg HTTP/1.1' pattern='/gallery2.3/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)' => matched
I am sure you can figure it out but it may take more time than you can spare and I understand if it does.
Thanks,
Randal