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

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
    Newton, MA
    Thanked 5,672 Times in 1,813 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 and a public website (say 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.

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

    Resources for Affiliates:,,

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


    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
    Blog Entries
    Thanked 1,573 Times in 1,086 Posts


    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
    Courage is being scared to death...and saddling up anyway. John Wayne
    Thanked 8,240 Times in 5,220 Posts


    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.


Posting Permissions

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