Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-30-2008, 05:52 PM Need help
digital00's Avatar
Average Talker

Posts: 16
Trades: 0
Hi guys

Anyone can explain what are the difference between

Absolute URL & Relative URL

thanks
digital00 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-30-2008, 06:16 PM Re: Need help
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Absolute URL:
http://www.playitontheweb.com/games/...ame-2-game.htm

Relative URL:
/games/The-Torture-Game-2-game.htm

You can use either when referencing internal pages (the <A> tags on your site) -- relative is much better because if you change the directory structure or the domain, you don't have to change the URLs if they're relative.

The search engines sees them as the full URL even if you are using relative URLs.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 06-30-2008, 09:31 PM Re: Need help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Actually absolute URLs seem to be the better option for search engines. They can read the relative URL, but the absolute makes sure of it. Also if someone scrapes your content absolute URLs will point people back to your site. The relative URLs keep them on their site.

I used to use relative URLs for everything, but I've been using more and more absolute URLS now. If I do use a relative URL I use a root relative, but I'm slowly dropping the root relative and going with more absolutes.

It is a pain for moving things around though.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 06-30-2008, 09:36 PM Re: Need help
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Yeah, it's a pain to move things around, and it also makes your page size larger.

The benefits don't outweigh the drawbacks to me. Relative URLs make for much cleaner code imo.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 06-30-2008, 10:05 PM Re: Need help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I agree with you about the cleaner code, but I'd also like the search traffic so I don't mind the absolute URLs
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-01-2008, 12:33 AM Re: Need help
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
I assure you, search engines have absolutely no problem reading relative URLs, it doesn't help one bit in terms of search engines to use absolute URLs.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 07-01-2008, 06:33 PM Re: Need help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I know search engines can read relative URLs, but...

If someone scrapes your content and you're using relative URLs they can easily mirror your entire site. If you use absolute URLs then the links point back to your site instead of staying internal in the scraped version of your site.

You do end up getting links from the scraped sites. Low quality links to be sure, but still they're free links in the sense you don't have to do anything for them.

Those links can also help search engines determine which is the original version of the content. If you use relative URLs then it's possible it could be the scraped version of your content that ends up ranking while your original content is seen as the duplicate version.

If your content is syndicated and people can subscribe via email then you need to use absolute URLs if you want the links in your content to lead back to your site.

If by some chance you have canonical issues then relative URLs only enhance the problem.

Are there other solutions to the above? Sure, but using absolute URLs is generally the easier solution, especially if you're using something like PHP includes to build your site. If you're using includes there's a good chance your most important links (top level navigation, footer, sidebar) are likely in the one file and changing the URLs in the case you do move pages is trivial.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-01-2008, 08:54 PM Re: Need help
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Absolute URLs doesn't solve the problem you're describing, any scraper worth their salt will simply do a global replace "http://www.yourdomain.com/" with "" and voila, your absolute URLs are now relative...
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 07-01-2008, 09:26 PM Re: Need help
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
I guess article scrapers that just pull bodies of text instead of scraping whole sites might not bother replacing links.
__________________
~nyef

Please login or register to view this content. Registration is FREE
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 07-02-2008, 07:44 PM Re: Need help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You're welcome to disagree and I'm not telling you have to use absolute URLs. I'm only mentioning the common thinking in the seo community and things I've observed.

This isn't an end all be all kind of seo thing. All I'm saying is absolute URLs can help solve some issues associated with search engines.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Need help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33672 seconds with 12 queries