Images doesn't show

Support & site news.
Post Reply
User avatar
Spaceman-Spiff
Junior Member
Posts: 1
Joined: 2005-01-22 10:16

Images doesn't show

Post by Spaceman-Spiff » 2005-02-07 07:47

The site images doesn't show if you visit http://www.maayas.net/ but shows fine at http://maayas.net/
I'm guessing you have hotlink protection enabled, but haven't added www.maayas.net into the allowed list.

User avatar
Merri
Posting Freak
Posts: 818
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri » 2005-02-14 18:34

It is by purpose, because the forum acts weird and doesn't work properly if www.maayas.net is used. And yes, it is due to HotLink prevention. I haven't spent time to figure out how to make automatical redirection of www is used.
Now stuck in programming JavaScript

roxfan
Senior Member
Posts: 414
Joined: 2004-06-04 22:12

Post by roxfan » 2005-02-14 18:52

Try this in .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
(from http://no-www.org/faq.php)

User avatar
Merri
Posting Freak
Posts: 818
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri » 2005-02-15 11:43

Thanks roxfan :) Now I hope cPanel doesn't automatically remove the rules I set. I actually set an opposite rule to one of my sites on the same server, so it'll always have the www :)
Now stuck in programming JavaScript

Post Reply