.htaccess help

GwaiTsi

Joined: 2007-02-09
Posts: 56
Posted: Thu, 2007-03-22 16:29

Can someone please help me with gallery2 and joomla embedding.
I seem to have a .htaccess problem but can't fix it.

the URL for Gallery2 URL Rewrite on looks like: -
http://www.canza.cz/gallery2/v/Drinks/2005/

If i access Gallery2 from the embedded component the URL looks like (which is obviously incorrect): -
http://www.canza.cz/v/Drinks/2005/

I am guessing i need to change the Gallery2 .htaccess so that it removes the "gallery2" or the joomla .htaccess so that it does not remove the gallery2.

Grateful if someone can help with with this.

Gallery2 .htaccess
<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_URI} !/gallery2/main\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /gallery2/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/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/gallery2/main\.php$
RewriteRule . /gallery2/main.php?g2_path=%1 [QSA,L]
</IfModule>

Joomla .htaccess
Options +FollowSymLinks
Options +SymLinksIfOwnerMatch

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php