Hi
I made some changes to .htaccess file, and activated the mod in admin, and it works.
the original file was
Code: ›
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_path=%1 [QSA,L]
# The path to your Gallery (in this case example.com/gallery2/)
RewriteBase /gallery2/
RewriteRule ^admin /gallery2/main.php?g2_view=core.SiteAdmin [QSA,L]
So I changed "main" to gallery2", because my forum points to gallery2.php
Code: ›
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/gallery2\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2\.php$
RewriteRule . /gallery2.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2\.php$
RewriteRule . /gallery2.php?g2_path=%1 [QSA,L]
# The path to your Gallery (in this case example.com/gallery2/)
RewriteBase /gallery2/
RewriteRule ^admin /gallery2/main.php?g2_view=core.SiteAdmin [QSA,L]
I uploaded this file to the root of my phpbb forum, the only question I have is about this line:
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
Because it says gallery and not gallery2, so I don't know if this could cause a problem
Thanks