Results 1 to 10 of 10
  1. #1

    quick question Links

    in designing a site, I was wondering how you people prefer to do it,is there a better way between the 2?

    1: http://www.domainname.com/thelink"

    2: /thelink

    which would you use and why.
    LipWeb.Net
    "Less Lip More Service"
    Providing Quality Hosting at Fair Prices
    AIM: LipWebNet MSN: daniel[at]lipweb.net [color=red]

  2. #2
    Join Date
    May 2002
    Location
    UK
    Posts
    2,994
    I wouldn't bother putting the full domain name in. It makes your files bigger and there is simply no need.

    It also makes it much easier to test locally.

  3. #3
    Join Date
    Aug 2002
    Posts
    190

  4. #4
    debug I don't quite understand what your saying, could you explain it in a bit more detail.
    LipWeb.Net
    "Less Lip More Service"
    Providing Quality Hosting at Fair Prices
    AIM: LipWebNet MSN: daniel[at]lipweb.net [color=red]

  5. #5
    Join Date
    Oct 2002
    Posts
    348
    /thelink

  6. #6
    Join Date
    Aug 2002
    Posts
    190
    Originally posted by Lippy
    debug I don't quite understand what your saying, could you explain it in a bit more detail.
    Sorry, you are talking about designing a web site. I am talking about to convert the IP in base 16:

    By example:

    12.34.45.678 = 12 x 16777216 + 34 x 65536 + etc

  7. #7
    Join Date
    Aug 2002
    Location
    Long Island
    Posts
    427
    that's a funny IP address 12.34.45.678 hehe too bad you couldn't have larger numbers like this.

    I would rather use the \link.

    I ran into some problems when the domain name changed once and I had to go through the code and change all the links.

    Try not to use the http:\\domain.com\happydays\goodtimes\friends.php
    John Trovato
    In Office Networks, LLC
    Programmer, Cisco Network Engineer, Roofer, Biochemist, and Conductor.

  8. #8
    Join Date
    Aug 2002
    Location
    Long Island
    Posts
    427
    sorry /link hehe me bad, windows guy...
    John Trovato
    In Office Networks, LLC
    Programmer, Cisco Network Engineer, Roofer, Biochemist, and Conductor.

  9. #9
    "/thelink" is your best bet. You are dealing with a portability issue here. If you ever want to move the site or a portion of it to a different domain or directory you don't want to waste time tediously hunting and pecking through your script changing all the full domain references.....

    ....I suppose you could do a find and replace however. But why would you want to deal with that anyway.

    Using a relative path is the way to go.



    - D
    TriniTronic - Advanced Web Development - http://trinitronic.com

    WickiDevel.com - The Web Developer's Wiki Resource Guide - http://wickidevel.com

  10. #10
    Join Date
    Mar 2002
    Location
    Westbury, LI NY
    Posts
    1,705
    I agree with dTuesday, a relative link is the better of the two choices. Absoultes really become a pain later on.

Posting Permissions

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