Joomla.it Forum
Componenti per Joomla! => Gallerie di immagini => : szmigieldesign 20 Jul 2010, 20:47:09
-
Hello,
First of all - thanks for a wonderful and easy Joomla! component. It really makes my life easier :)
However, I've stumbled upon a weird problem. I've set four galleries on my portfolio and they work fine when the site is accessed via http://szmigieldesign.pl but the images won't load when you open the website with "www" prefix - www.szmigieldesign.pl.
Galleries are located in "Digital Art" section.
Is it a known error and is there a way to counter it?
-
Ok, I've found a workaround by using .htaccess file.
For everyone experiencing the same problem - you need to add this to your .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example\.com
RewriteRule (.*) http://example.com/$1 [R=301,L]
Remember to change "example.com" with your domain.
What it does it captures every www.domain.com and redirects it into http://domain.com thus fixing the problem with Ozio Gallery not displaying pictures when the site is loaded with "www"
Here's the source for this .htaccess trick:
http://www.webweaver.nu/html-tips/web-redirection.shtml
Anyway - it doesn't resolve the plugin problem completely (although it works for me).