Jump to content

Images are not working


Shadowing

Recommended Posts

Hey guys ive been using XAMPP locally on my desktop for 6 months but now i switched to a VPS that I manage my self

 

I have everything up and running accept for some reason I cant display image files or CSS url back ground pictures.

is there some sort of setting that I need to have turned on or something?

im running it on ubuntu 10.04

 

<img class="stargate" src="/images/stargate/1.gif" alt="chevron 1" />

www.stargatesystemlords.com/signup.com

Link to comment
https://forums.phpfreaks.com/topic/261931-images-are-not-working/
Share on other sites

Unfortunately, Apache on case-sensitive operating systems causes URL's to be case-sensitive.

 

You need to use the exact same capitalization as your folders names in any link/url - Images

 

I would recommend using all lower-case for folders and file names.

 

P.S. You have options indexes on, which allows directory browsing (browse to any folder path.) You also don't have a default document in your root folder. You need a .htaccess file with Options -Indexes to prevent directory browsing.

 

thats amazing problem solving PfMaBiSmAd lol

 

that fixed it. yah i use lowercase for everything even php variables and stuff. but for some reason i named two folders starting with a capital letter lol. thanks you alot.

 

i have one picture not displaying still trying to figure out why. maybe cause the picture name is 0.gif. going to try something else

ahh I figured out why that last picture wouldnt load

 

 

for some reason absolute paths are not working for my image src

 

http://www.stargatesystemlords.com/images/0.php

 

same thing with my external style sheets.

 

any idea why apache 2 is doing that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.