by ec. » Wed Jun 23, 2010 3:14 pm
Hello,
I have problem with SEO and Phpbb Gallery 1.0.5 integration.
My gallery Images doesn't appear anywhere in the gallery.
I've installed SEO URL phpBB Gallery V1.0.5. My board runs from directory named 'phpbb', which I've made a virtual folder in SEO CP. This seems to be the cause of a problem.
Changing this line
# FIX RELATIVE PATHS : FILES
RewriteRule ^phpbb/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /site/$1 [QSA,L,NC,R=301]
to
# FIX RELATIVE PATHS : FILES
RewriteRule ^phpbb/(?!gallery)/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /site/$1 [QSA,L,NC,R=301]
changes nothing. As well as deleting the rule.
I fixed the problem partly by changing ALL THE RULES in my .htaccess for # PHPBB GALLERY, setting the phpbb root direcly:
# ALBUM
RewriteRule ^gallery/[a-z0-9_-]*-a([0-9]+)/?(page([0-9]+)\.html)?$ /site/gallery/album.php?album_id=$1&start=$3 [QSA,L,NC]
to
# ALBUM
RewriteRule ^phpbb/gallery/[a-z0-9_-]*-a([0-9]+)/?(page([0-9]+)\.html)?$ /site/gallery/album.php?album_id=$1&start=$3 [QSA,L,NC]
This made images visible and links to their pages working,
BUT killed my non-gallery links inside the gallery: links to board Index, user profiles, mod-cp, etc. -- all them now have /phpbb/ root and fail to open the document (before the changes I've made they were the only working links in the gallery).
Please help to find right solution.
Thank you