i was asked to post a copy of my .htaccess file.
for reference, my setup is:
www.domain.com/forums.php
www.domain.com/gallery2/
this file is located both in my web root directory and in my gallery2/ directory (perhaps redundantly in the 2nd location for that matter!)
Code:
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !gallery2\.php
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} \ /v/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !gallery2\.php
RewriteRule . /gallery2.php?g2_view=core.ShowItem [QSA,L]
RewriteCond %{THE_REQUEST} \ /d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !gallery2\.php
RewriteRule . /./gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2 [QSA,L]
RewriteCond %{THE_REQUEST} \ /v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !gallery2\.php
RewriteRule . /gallery2.php?g2_view=core.ShowItem&g2_path=%1 [QSA,L]
</IfModule>
# END Url Rewrite section