CodeIgniter Forums
Broken images and subdomain - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Broken images and subdomain (/showthread.php?tid=19541)



Broken images and subdomain - El Forum - 06-10-2009

[eluser]tmac[/eluser]
I have a problem with images not showing on subdomains, this problem also affects links to some files directly.

My codeigniter is installed with the following setup

http://subdomain.mysite.com/

public/images/
public/css/
system/
index.php

If I paste the link in my browser then it works http://subdomain.mysite.com/public/images/testimage.jpg
It however does not work inside the page. The weird thing is that my css and javascripts work but not the direct link to the images.
I checked the image properties and it is the correct link.

If i however browse my site from the folder instead of the subdomain then it works fine
http://www.mysite.com/subdomain

I do not use .htaccess to remove the index.php

Any help would be greatly appreciated. Thanks


Broken images and subdomain - El Forum - 06-10-2009

[eluser]Asinox[/eluser]
did u checked the permission images folder?


Broken images and subdomain - El Forum - 06-10-2009

[eluser]tmac[/eluser]
Thank you for the reply. It is a permission problem but I am not sure why and how to solve it. Using firebug for firefox from your suggestion i get this as the response when the image is to load

Code:
You don't have permission to access /public/images/myimage.jpg
on this server.<P>

How can I return access to that file, as mentioned before it does work if i view the image from the browser address bar.
Thanks for any guidance.


Broken images and subdomain - El Forum - 06-11-2009

[eluser]Asinox[/eluser]
i know that u know how use ftp for permission , here some help about ftp and permission

http://www.interspire.com/content/articles/12/1/FTP-and-Understanding-File-Permissions