Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Relative location of images

Reply
Thread Tools

Relative location of images

 
 
Gary
Guest
Posts: n/a
 
      07-03-2003
Right i've recently set up my server to point any invalid pages within my
domain (404 errors) to my own error page.

Try it out for yourself at:

www.hyppocampus.co.uk

www.hyppocampus.co.uk/silly.html for example should send you to my error
page.

The problem comes in when somebody might type:

www.hyppocampus.co.uk/silly/silly.html

It goes to my error page but the images are not present due to incorrect
relative referencing. I somehow need to reference to my images in an
absolute manner. I'd rather not do this as
www.hyppocampus.co.uk/images/menu.gif if you see what i mean. Id rather do
it just from the root directory but im not quite sure how this works....
especially since im using the same code for my menu for all pages. Get me?


 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      07-03-2003

"Gary" <> wrote in message
news:be1p8b$39a$...
> Right i've recently set up my server to point any invalid pages within my
> domain (404 errors) to my own error page.
>



I wouldn't go to that extreme of nit pickin.
what if I typed in "dilly", "willy","filly"?
If the page don't exist, their own browser will let them know.
By going to that extreme, you're just wasting bandwidth.



 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      07-03-2003

"Not in my trousers" <> wrote in message
news:...
>
>
> > If the page don't exist, their own browser will let them know.
> > By going to that extreme, you're just wasting bandwidth.
> >

>
> You obviously know nothing at all about selling yourself or your
> products/services on the web !!
>
> If a user hits a none existstant page on your site you have 2 options :-
>
> A. Let his browser tell him your site sucks and let him go elsewhere ...
> or
> B. Use a custom 404 page to direct him to your index page or some other
> page on your site..
>
> Why do you think that delivering a custom 404 page and keeping a visitor

on
> your site is a waste of bandwidth??
>


So my host doesn't have the capability of working with nonexistant pages.
I'm supposed to think of all the zillions of possibilites and redirect?
The way I see it, if the user is going in through a back door, I have to ask
myself, why?
Is he looking for a way to hack my site?
Or is he just out on a fishing trip to see what else I might have that he
won't have to pay for.
I can always check the stats and see what pages were called on and work from
there..
Or I can just put in a simple redirect to the home page.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Including a javascript relative to its own location from anotherjavascript Nettar Javascript 2 03-20-2008 09:49 AM
Displaying all ID's in relative location... Mel Javascript 1 04-03-2007 05:37 PM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
Relative Location for Inherits Property =?Utf-8?B?VG9ueSBBYmF0ZQ==?= ASP .Net 10 11-10-2005 04:06 PM
relative applet location causes problems on local disk Xah Lee Java 2 05-03-2004 12:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57