1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Using absolute url's instead of relative url's, does it make a difference?

Discussion in 'Search Engine Optimization' started by fatabbot, Jan 21, 2007.

  1. #1
    From an SEO point of view, is it better to have absolute paths in your website (so all href's starting with http://www.site.com/path/to/page/page.php) or is it better to have relative paths (/path/to/page/page.php)

    I'm using relative paths everywhere and url's rewritten with apache's mod_rewrite, but when i generate a sitemap, on the places where i use relative url's, the url's in the sitemap are wrong.
    SEMrush
     
    fatabbot, Jan 21, 2007 IP
    SEMrush
  2. Cricket

    Cricket Well-Known Member

    Messages:
    182
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Here is what Google has to say about the issue ...

     
    Cricket, Jan 21, 2007 IP
  3. fatabbot

    fatabbot Peon

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ah ok, where did you find that ?
     
    fatabbot, Jan 21, 2007 IP
  4. Cricket

    Cricket Well-Known Member

    Messages:
    182
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Cricket, Jan 21, 2007 IP
    fatabbot likes this.
  5. fatabbot

    fatabbot Peon

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    fatabbot, Jan 21, 2007 IP
  6. oseymour

    oseymour Well-Known Member

    Messages:
    3,962
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    135
    #6
    thanks for the info. It is considered good design practice to use absolute urls. programs like dreamweaver do not do this by default.
     
    oseymour, Jan 21, 2007 IP
  7. awaken

    awaken Guest

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    let's say you have php pages and the structure is setup so each page has an index.php, like this: "http:/www*widget*com/bluewidget/index.php" would it be better to link to those pages using the above url or could you just use "http:/www*widget*com/bluewidget/"?
     
    awaken, Sep 26, 2007 IP
  8. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #8
    I'd recommend www.domain.com/folder/ instead of www.domain.com/folder/index.ext ...

    because lets say you use index.asp (active server pages), then you redesign your site using php... your new index file is index.php... you'd lose any pagerank/serps...
     
    tarponkeith, Sep 26, 2007 IP
  9. awaken

    awaken Guest

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    great thanks!
     
    awaken, Sep 26, 2007 IP
  10. twalters84

    twalters84 Peon

    Messages:
    514
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hey there,

    I do not know about this SEO issue, but I can as a programmer, it is much easier to transfer domains when relative paths are used.

    If you use an absolute path in a flash file, you are going to run into a security issue with flash. For instance.. say you use the path.. http://www.myDomain.com/index.html.. the flash file will work when you type that path in your browser.. but it would throw a hissy when http://myDomain.com/index.html is used.

    From what I read for these responses, google wants you to use absolute paths in SITEMAPS, but I would recommend relative paths when developing the actual site.

    For the site I just created, that is exactly what I did. Take a look at the sitemap:

    http://www.lukebouman.com/siteMapIndex.cfm

    Hope this helps.

    Sincerely,
    Travis Walters
     
    twalters84, Sep 26, 2007 IP