Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: hardcoded url versus relative path

  1. #1
    Senior Member Emark2009's Avatar
    Join Date
    Oct 2005
    Posts
    221

    hardcoded url versus relative path

    basic question:

    does it make any difference for SE's if you use hardcoded urls in the code like http://www.domain.com/en/file.htm instead of e.g. "../en/file.htm"

  2. #2
    WebProWorld MVP Peter (IMC)'s Avatar
    Join Date
    Dec 2003
    Posts
    1,483
    Makes no difference. First thing a search engine does is change relative urls into absolute urls.

    But from a practical point of view I wouldn't use ../

    Just use /path/path/etc.html, it will save you a lot of headaches.. :)

    By the way, I saw you´re located in Brazil. Que bom que não sou a unica pessoa no Brasil que visita este forum. If you feel like that´s not correct portuguese than that´s possible,. :) I am not brazilian, but I live in São Paulo for about 5 years now.

    <added> Ah,.. je spreekt zelfs nederlands,. :) Then my portuguese will be fine for you... </added>
    FREE SEO ! Really? YES! All you have to do is implement it!
    Follow me on Twitter PeterIMC

  3. #3
    WebProWorld MVP incrediblehelp's Avatar
    Join Date
    Jan 2004
    Posts
    7,567
    Google has said they prefer absolute, but didn't give a reason why. One thing is fro sure that they want you to be consistent and use one or the other and don't mix and match throughout the website.

    Many posts on this already:

    Post subject: absolute urls for internal links or local?

    Post subject: Relative vs. Absolute Links

  4. #4
    Senior Member Emark2009's Avatar
    Join Date
    Oct 2005
    Posts
    221
    Quote Originally Posted by incrediblehulk
    don't mix
    oops.. in this site http://www.visitnatalbrazil.com i use relative paths, but recently i added a wordpress blog see http://www.visitnatalbrazil.com/pt/blog/ which has absolute (perma)links...

    am i in trouble now?

  5. #5
    WebProWorld MVP incrediblehelp's Avatar
    Join Date
    Jan 2004
    Posts
    7,567
    That statement is (was) from Google. I would monitor it if your leaving it or make efforts to make them the same. All I can do here is recommend.

  6. #6
    WebProWorld MVP incrediblehelp's Avatar
    Join Date
    Jan 2004
    Posts
    7,567
    By the way here is where Google hints about absolute over relative.

    Where possible, use absolute rather than relative links. (For instance, when linking to another page in your site, link to www.example.com/mypage.html rather than simply mypage.html).

Similar Threads

  1. Path Analysis
    By JuniorOnline in forum Marketing Strategies Discussion Forum
    Replies: 1
    Last Post: 01-04-2006, 11:00 AM
  2. Am I on the right path?
    By KeithO in forum Google AdWords/Google AdSense
    Replies: 6
    Last Post: 11-14-2005, 08:45 AM
  3. Path Brushing
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 03-27-2005, 01:00 AM
  4. Text on Path
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 02-17-2005, 12:31 AM
  5. Am I on the right path?
    By Todd1980 in forum Marketing Strategies Discussion Forum
    Replies: 3
    Last Post: 07-08-2004, 04:05 PM

Posting Permissions

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