/    Sign up×
Community /Pin to ProfileBookmark

Can I keep my images in a different folder?

I was taught that all the images used on a web site needed to be contained in the same folder as the pages themselves.

Well I’m working on a project that is heavy in graphics and I would like to keep the images and PDF files and so on in there current locations. Is it possible to link to them without putting them in the same folder?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@DoppleAug 04.2006 — You certainly can. If your index.html was in the root folder then you could create a folder called images then call the images with the code
[code=html]<img src="images/image.jpg">[/code]
Copy linkTweet thisAlerts:
@web_roshanAug 04.2006 — It is usually better to keep images in a separate folder. It may represent a structured organization of files on the Web Server. Categorizing data would allow you to do your work with ease.
Copy linkTweet thisAlerts:
@DoppleAug 04.2006 — Absolutely. In my root derectory I have an images folder which holds basic site graphics and within that I have 2 folders one for the gallery images and one for those images' thumbnails.
Copy linkTweet thisAlerts:
@RGLauthorAug 04.2006 — Let me ask this. How far out can I expand this. In other words at my office I have several servers with several directories each, within those are folders with the images. Can I take it out that far? And is it basically done the same way?
Copy linkTweet thisAlerts:
@DoppleAug 04.2006 — Are you doing it locally? You could but you'd have to make the url something like

localhostsitenameimagesimage.jpg

Not sure if this is what you were refering to.
Copy linkTweet thisAlerts:
@RGLauthorAug 04.2006 — It's locally to a degree. We have multiple servers. Each with an address like this: Share on 'File02' (L) and then within those are the different folders and sub folders. My access to it is through My Computer. With that would it be something like:

[CODE]My Computer/Share on 'File02'/Main Folder/Sub Folder/image[/CODE]
Copy linkTweet thisAlerts:
@RGLauthorAug 04.2006 — No need to reply. I figured it out and yes I can carry it out pretty much as far as I want.
×

Success!

Help @RGL spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...