SEO Tips Blog


[ Blog Home ]

Relative or absolute paths to use in your page?

Friday, August 04, 2006
 

There are three types of paths usually used to link files and objects.

1) Site root relative (eg: /news/today.html)
2) Document relative (eg: ../news/today.html)
3) Absolute (eg: "http://www.anotherwebsite.com/item/item.html")

Site root relative paths start with slash that identifies the root of site. Document relative paths describe the location of file in relation to another file on the same server. Absolute path contains URL of the item being referenced.

Even if google doesn't rank above paths differently, I recommend to follow site root relative paths in your internal links and absolute paths for external file links. By using these two paths, you can ensure none of your links are broken and can avoid confusion to GoogleBot.

Additional details about paths:

1) Document-relative, site root-relative and absolute paths
2) Site Root Relative - Why?

[ Bookmark to del.icio.us ]

Comments:

No comments yet.

 
Your comment:
Name: E-mail or Homepage:  
 
 
verification code
Enter Verification Code
 

101 Tips on search engine optimization ebook

Free SEO Book


101 Essential Tips & SEO Tools

101 essential tips on search engine optimization, seo tools for analyzing your website and search engine / directory links.

Download free SEO ebook


Tell a friend
Send this page to a friend

Web This site
Latest Posts

Bookmark This Blog
Add to Your Google Homepage
Add to Your Yahoo Homepage
Add to Your MSN Homepage
del.icio.us SEO Tips
Add to My AOL
 
SEO Tips Archive XML

Valid RSS feed