Page 1 of 1
Images not linking in any idea?
Posted: Wed Aug 15, 2007 9:34 am
by Metal Beryl
For some reason no images are showing on my website and also within the admin area!
Any idea why, all images are still in the image folder on the server.
www.rapidreality.co.uk/graphic
Jane
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 9:42 am
by RonnyK
Jane,
the umask in "Global settings" should be set to "002" to make images/thumnails visible to the world. You might want to try changing the rights on the files within the folder (using FTP) to change them for the files already present.
Ronny
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 11:37 am
by Metal Beryl
Those tips don't seem to work I still cant see the imagesĀ

Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 11:42 am
by RonnyK
Did you change the rights (to 775) for:
uploads/images/DR_Image_g.jpg
That's the file being pulled.
Ronny
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 12:45 pm
by Dr.CSS
Actually just the folders need to be 755, uploads and images...
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 1:00 pm
by Metal Beryl
Unfortunately that isnt working, I have set the permissions as suggested.
Could it have something to do with the .htaccess I have on the cgi server. It is currently directing the url to another cms folder on the cgi server. At the moment I am using the url as a way to allow me to work on two sites sitting in individual folders before directing their individual urls to the folders. Is this making sense?!
The .htaccess document is...
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
www.rapidreality.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/product/*
RewriteRule (.*) /product/$1 [L]
RewriteBase /product/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Jane
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 1:29 pm
by Dr.CSS
I had so much trouble running multiple subfolder sites with .htaccess in the root, no matter how I used .htaccess in the other subfolder sites, I just went back to the root and removed the .htaccess and turned on the internal pretty URLs with '$config['internal_pretty_urls'] = true;' and now I get the news and such as nice looking URLs "/index.php/news/11/15.html" and all I wanted to do was get rid of the index.php...
Re: Images not linking in any idea?
Posted: Wed Aug 15, 2007 2:18 pm
by Metal Beryl
ok guys I just tried something out... I changed my current .htaccess file to point to the graphic folder and all images came back in... see
www.rapidreality.co.uk
Am i right to use the following .htaccess code on my cgi server to point my two domains to different folders on the cgi server:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^
www.myurl1.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/myfolder1/*
RewriteRule (.*) /myfolder1/$1 [L]
RewriteBase /myfolder1/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteCond %{HTTP_HOST} ^
www.myurl2.co.uk$ [nc]
RewriteCond %{REQUEST_URI} !^/myfolder2/*
RewriteRule (.*) /myfolder2/$1 [L]
RewriteBase /myfolder2/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Jane
Re: Images not linking in any idea?
Posted: Tue May 01, 2012 4:20 pm
by Zafazo
It does seem to be in the .htaccess file.
I was having trouble with images showing up in the back-end editor as well as on the website front-end it's self.
Turned out to be Cpanel's Hotlink protection section(?) which we had enabled thinking there was some other service or script that Cpanel used to block direct access to the files but turned out it simply added code to the .htaccess to block direct access which caused all kinds of problem in the back-end which seemed to propagate through to the front-end as well for some strange reason.
Case In Point,
When we would edit the back-end pages with images in them they would not show up (show up as blank no image images) which when we went to the front-end or the page it's self the images would also not be linked.
I'm still not 100% sure if it was only the .htaccess file it's self but we shall see.
O and
cPanel Version: 11.32.2 (build 25)
Apache version: 2.2.22
PHP version: 5.2.17
MySQL version: 5.5.21-55
Architecture: x86_64
Operating System: linux
Our server recently underwent an update as well but we had these problems before the upgrade.
**Also, I did notice that the topic is old but it still came up as one of the top search results from Google, so assuming others will have this problem as well I added to this topic.