View Poll Results: Do you use absolute or relative links on your websites?

Voters
5. You may not vote on this poll
  • I always use absolute urls.

    1 20.00%
  • I usually use absolute urls.

    2 40.00%
  • I don't favor either absolute or relative urls.

    0 0%
  • I usually use relative urls.

    2 40.00%
  • I always use relative urls.

    0 0%
Results 1 to 4 of 4
  1. #1
    MichaelCorfman's Avatar
    MichaelCorfman is offline GPWA Executive Director
    Join Date
    June 2004
    Location
    Newton, MA
    Posts
    4,222
    Thanks
    894
    Thanked 5,436 Times in 1,756 Posts

    Question Do you use absolute or relative links on your websites?

    Over the past month there has been a discussion about using absolute versus relative links to pages within a site.

    You can see the thread started by GPWA member UltimatePokerBonus here: Internal Links - Does the "www" matter?

    Some folks favor using absolute links and others favor relative links.

    Arguments in favor of relative links include that certain types of site changes are easier to make using relative urls. Examples include changing from http to https, or migrating from one host name or domain name to another. As once example, if you have both a test website (say test.domainname.com) and a public website (say www.domainname.com) then the two sites can be copies of one another except for the particular areas where you are testing changes. This is the approach we take with the GPWA website.

    On the other hand, sites using relative links are somewhat easier to copy by those who engage in unethical site scraping. And so some folks use absolute urls as a way of creating an impediment to folks copying their sites, or simply because they like specifying full urls.

    Besides voting in the poll, be sure to share your practices and thoughts on the subject.

    Michael
    GPWA Executive Director, Casino City CEO, Friend to the Village Idiot

    Resources for Affiliates: iGamingDirectory.com, iGamingAffiliatePrograms.com, GamingMeets.com

  2. #2
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,897
    Blog Entries
    3
    Thanks
    1,302
    Thanked 1,289 Times in 760 Posts

    Default

    Only sites with static content (HTML) can be copied. PHP can not be accessed externally (and that includes Wordpress), so it's impossible for anyone to create a mirror image of your site. Unless they have backend access, but in that case you're screwed anyway.

  3. The Following User Says Thank You to DanHorvat For This Useful Post:

    -Shay- (5 March 2015)

  4. #3
    sweetbet's Avatar
    sweetbet is offline Public Member
    Join Date
    November 2012
    Posts
    2,819
    Blog Entries
    5
    Thanks
    898
    Thanked 1,574 Times in 1,087 Posts

    Default

    I mostly use absolute links, but if the files I'm linking to are within the same directory, then it's just easier to use relative links.

  5. #4
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    28,302
    Thanks
    2,296
    Thanked 7,985 Times in 5,041 Posts

    Default

    I always use absolute url's no matter what.

    As far as the www or not, I always use it, but make sure the htaccess file is set to redirect any non-www urls or traffic to the www one.

    I think the best practice is to decide what you will do and ALWAYS do that to stay consistent.

    Rick
    Universal4

Posting Permissions

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