CodeIgniter Forums

Full Version: Broken images and subdomain
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

[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.

El Forum

[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/articl...ermissions