Results 1 to 10 of 10

Thread: Website images

  1. #1
    Senior Member RECOiL™'s Avatar
    Join Date
    Dec 2005
    Location
    Hertfordshire
    Posts
    583
    Thanks
    5
    Thanked
    1 time in 1 post
    • RECOiL™'s system
      • Motherboard:
      • Asus P5B Deluxe WiFi AP
      • CPU:
      • E6600
      • Memory:
      • 2GB Kingston HyperX
      • Graphics card(s):
      • 7800GTX nVidia
      • PSU:
      • 700watt Modular
      • Case:
      • Akasa Eclipse 62
      • Monitor(s):
      • Dual Dell 1901FP (19")
      • Internet:
      • 20mbit NTL

    Website images

    Dear all,

    I have a website hosted at my work.
    Externally the website displays fine. Internally the website displays ok, but some images are replaced by a red cross. When i right click on the image and select get image it changes the url to the old website address. What can i check to see why this is happening internally ?

    Regards

  2. #2
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts

    Re: Website images

    your internal and external references are probably different.

    Depends how its hoststed.
    It is Inevitable.....


  3. #3
    Senior Member RECOiL™'s Avatar
    Join Date
    Dec 2005
    Location
    Hertfordshire
    Posts
    583
    Thanks
    5
    Thanked
    1 time in 1 post
    • RECOiL™'s system
      • Motherboard:
      • Asus P5B Deluxe WiFi AP
      • CPU:
      • E6600
      • Memory:
      • 2GB Kingston HyperX
      • Graphics card(s):
      • 7800GTX nVidia
      • PSU:
      • 700watt Modular
      • Case:
      • Akasa Eclipse 62
      • Monitor(s):
      • Dual Dell 1901FP (19")
      • Internet:
      • 20mbit NTL

    Re: Website images

    All hosted internally on one of our webservers IIS. Please enlighten me on where to look... gawd i almost hate this job.

  4. #4
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Website images

    Proxy / Some type of caching somewhere as well as above?
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  5. #5
    www.dougmcdonald.co.uk
    Join Date
    May 2007
    Location
    Bath
    Posts
    523
    Thanks
    5
    Thanked
    20 times in 20 posts
    • DougMcDonald's system
      • Motherboard:
      • Asus P5B Deluxe
      • CPU:
      • Inter Core 2 Duo E6600
      • Memory:
      • 2 x 2GB - Geil Black Dragon PC6400
      • Storage:
      • 2 x 400GB Samsung Spinpoints (Running in Matrix array) 100GB @ RAID0 + 300GB @ RAID1
      • Graphics card(s):
      • BFG nVidia 8800GTS 320MB OC2
      • PSU:
      • Corsair HX520W modular
      • Case:
      • Lian-Li PC7 II Plus
      • Monitor(s):
      • LG 17" Flat Thingy
      • Internet:
      • Crappy BT 1MB Unreliable wank :s

    Re: Website images

    Need more info for this, what format are the images? How are you referencing them? Code etc

  6. #6
    Senior Member RECOiL™'s Avatar
    Join Date
    Dec 2005
    Location
    Hertfordshire
    Posts
    583
    Thanks
    5
    Thanked
    1 time in 1 post
    • RECOiL™'s system
      • Motherboard:
      • Asus P5B Deluxe WiFi AP
      • CPU:
      • E6600
      • Memory:
      • 2GB Kingston HyperX
      • Graphics card(s):
      • 7800GTX nVidia
      • PSU:
      • 700watt Modular
      • Case:
      • Akasa Eclipse 62
      • Monitor(s):
      • Dual Dell 1901FP (19")
      • Internet:
      • 20mbit NTL

    Re: Website images

    if i put www. before it some images dont display correctly, but if i remove www. and just have http://sitename.co.uk all is well.

  7. #7
    www.dougmcdonald.co.uk
    Join Date
    May 2007
    Location
    Bath
    Posts
    523
    Thanks
    5
    Thanked
    20 times in 20 posts
    • DougMcDonald's system
      • Motherboard:
      • Asus P5B Deluxe
      • CPU:
      • Inter Core 2 Duo E6600
      • Memory:
      • 2 x 2GB - Geil Black Dragon PC6400
      • Storage:
      • 2 x 400GB Samsung Spinpoints (Running in Matrix array) 100GB @ RAID0 + 300GB @ RAID1
      • Graphics card(s):
      • BFG nVidia 8800GTS 320MB OC2
      • PSU:
      • Corsair HX520W modular
      • Case:
      • Lian-Li PC7 II Plus
      • Monitor(s):
      • LG 17" Flat Thingy
      • Internet:
      • Crappy BT 1MB Unreliable wank :s

    Re: Website images

    Personally, I would use relative linking for images.

    e.g

    Instead of putting http://site.com/img.jpg or http://www.site.com/img.jpg

    I would just use img.jpg

    That way, if your domain changes from www.site.com to www.company.com you don't need to change any code.

  8. #8
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Website images

    There's also the absolute root relative linking. e.g.

    Code:
    <img src="/images/foo.jpeg" />
    and current document path relative linking. e.g.

    Code:
    <img src="../images/foo.jpeg" />
    <img src="./images/foo.jpeg" />
    In the first example, the browser simply prefixes the src location with the proto://domain the current page is on. In the second example, assuming foobar.html is in www.example.com/pages/ and you have a directory for images at www.example.com/images/ that would work. In the third example, assuming foobar.html is in www.example.com/ and you have the same directory for images, that would also work.

    This removes a lot of site specific hassle from the web page and leaves it up to the browser to do the right thing(tm).
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  9. #9
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Website images

    DNS differs externally/internally?

  10. #10
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Website images

    Or if you *have* to use absolute linking (and I cant really think of a reason at the moment), make use of either ASP / PHP and define the URL as a string, and just drop that in where needed.
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delivery delays and item removed from website
    By sbt in forum SCAN.care@HEXUS
    Replies: 8
    Last Post: 09-04-2007, 05:59 PM
  2. Website / Name Purchasing and Hosting (Help)
    By muddyfox470 in forum Software
    Replies: 8
    Last Post: 08-07-2005, 03:27 PM
  3. BBC culls Cult website
    By Steve in forum HEXUS News
    Replies: 0
    Last Post: 01-07-2005, 01:47 PM
  4. recommend some website design software
    By petrefax in forum Software
    Replies: 24
    Last Post: 23-09-2004, 09:00 AM
  5. Replies: 2
    Last Post: 17-08-2004, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •