Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Why am I forced to use "absolute URLs" in code?

    This is very odd. I am modifying a website locally on my machine before I upload it for a client.

    Why is the entire site structure forcing me to use absolute path URL's for things like images, css, site linking etc...

    So this simply doesn't work <img src="../images/photo.png"> I have to use the entire "http://www.-----

    All my other sites allow relative linking and they have always worked great.

    What is forcing this site to force me to use absolute URL's?

    Very confused here!! Thanks!!!

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello listerdl,
    Umm, maybe because the images are not on the local machine?

    Have you ever tried <base html="path" /> ? Look at this suggestion: http://www.w3schools.com/tags/tag_base.asp
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    listerdl (10-28-2011)

  • #3
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts
    THANKS that is what the "problem" was.


  •  

    Posting Permissions

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