Back to top

Autore Topic: Images are not displaying when website is loaded with www prefix  (Letto 5468 volte)

Offline szmigieldesign

  • Nuovo arrivato
  • *
  • Post: 2
    • Mostra profilo
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?

Offline szmigieldesign

  • Nuovo arrivato
  • *
  • Post: 2
    • Mostra profilo
Re:Images are not displaying when website is loaded with www prefix
« Risposta #1 il: 21 Lug 2010, 00:48:49 »
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:
Codice: [Seleziona]
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).

 



Web Design Bolzano Kreatif