Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-03-2005, 08:25 PM   #1 (permalink)
In The Zone
 
tuXian's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 364
Default .:: Best Way Of Hyperlinking? ::.


Soppose I have a domain abc.com

Whats the best way of hyperlinking from within the site?I mean linking between the various site pages.

Code:
xyz
OR

Code:
xyz
What are the pros and cons of linking in both the ways?

Do they invite or prevent problems/errors?

Which one is more optomized for Search Engines?

Will the page load time differ in both the cases? if yes then why?

Any other thing?

Plz post in ur comments
__________________
You know it's love when you memorize her IP to skip DNS overhead.
tuXian is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-03-2005, 09:04 PM   #2 (permalink)
Human Spambot
 
Join Date: May 2004
Location: off to "never ever" land
Posts: 2,912
Default

no difference boss
the first option is simply there to prevent retyping of the entire URL afaik !
so no worries
__________________
No Mercy, No Limits.
Oobertech.net - Keeping Knowledge Free
theraven is offline  
Old 11-03-2005, 10:01 PM   #3 (permalink)
Certified Nutz
 
sreevirus's Avatar
 
Join Date: Jan 2004
Location: The 3rd rock from the sun
Posts: 310
Default

Quote:
Originally Posted by theraven
no difference boss
the first option is simply there to prevent retyping of the entire URL afaik !
so no worries
well raven, u might be wrong here...
i made a simple html file with the following codes and tested it on firefox and IE..
while the first, second and fifth codes gave normal results and directed me to the respective sites, the others directed me to these links:
Code:
file:///F:/My%20Files/www.google.com
file:///F:/My%20Files/google.com
file:///F:/My%20Files/google

file:///F:/My%20Files/google.co.in/intl/en/about.html
well, i thot it might be just coz the file is on my hard disk....so i then tried the codes on an old news page in disco82 phpnuke site..again, while the first, second and fifth links directed me to the original sites, the others directed me to these:
Code:
http://disco82.ecwhost.com/phpnuke/www.google.com
http://disco82.ecwhost.com/phpnuke/google.com
http://disco82.ecwhost.com/phpnuke/google

http://disco82.ecwhost.com/phpnuke/google.co.in/intl/en/about.html
:roll:

the catch: from my tests, the best way of hyperlinking is to add http:// before the site...

well, just for a confirmation, some1 pls try similar codes on some site and reply
__________________
"Don't take life too seriously. You'll never get out alive!" - Bugs Bunny
sreevirus is offline  
Old 11-03-2005, 11:21 PM   #4 (permalink)
Human Spambot
 
Join Date: May 2004
Location: off to "never ever" land
Posts: 2,912
Default

?
im not quite sure thats what he was askin

if you're in a site ...
say http://www.abc.com/index.html
and u wanna link to http://www.abc.com/about.html
then instead of giving
About ON the index.html page ...
i can give About as long as the directory is the same
if the about page is in a directory /about
then i can give the following code

About

he was talkin abt the code given on a website

if u wish to test this create 2 html files
in one give the complete address of the second file ... as well as only filename.html and try
they both will work !

his question was whether theres a difference between the 2 links as per search results etc
and theres no diff AFAIK !!!

infact by cutting down the number of characters u type in the in the html file ur also saving space !!
__________________
No Mercy, No Limits.
Oobertech.net - Keeping Knowledge Free
theraven is offline  
Old 11-03-2005, 11:35 PM   #5 (permalink)
Wise Old Owl
 
Join Date: Jul 2004
Location: Bangalore
Posts: 1,208
Default

If the links are relative to the domain then there is no need to give the whole link. Just the page is enough. If not then the whole link needs to be given.
__________________
AMD 64 3500+ Venice
DFI Lan Party Ultra-D
2* 512 MB PdP Memory with 2-2-5L timings
XFX 7900GT 256 MB Card
icecoolz is offline  
Old 12-03-2005, 11:36 AM   #6 (permalink)
In The Zone
 
ramprasad's Avatar
 
Join Date: May 2004
Location: 00-1D-7D-5A-34-2E
Posts: 375
Default

Hi
My opinion is that using relative links is the best method. If u use absolute url then u might not be able to use the same page for more than one website.....

Regards,
Ramprasad
ramprasad is offline  
Old 12-03-2005, 06:24 PM   #7 (permalink)
Wise Old Owl
 
enoonmai's Avatar
 
Join Date: Oct 2004
Location: Parked diagonally in a parallel universe
Posts: 1,304
Default

What are the pros and cons of linking in both the ways?

theraven is right. Always use relative addressing. "Hard coding" the URLs in a website is considered poor site design, and makes it impossible to reuse your code if you switch domains. Do not hard-code your URLs unless its absolutely necessary or you're linking to a third party site that you know for sure wont change or if its not within your control.


Do they invite or prevent problems/errors?

Each has its own share or pros and cons. Relative addressing makes it easy to migrate your site and prevents mistakes, broken links and typing out code all over again and doing a "Find and replace" Use hard-coded URLs only if you're linking to third party sites separate from your domain.

Which one is more optomized for Search Engines?

The search engine doesn't care one way or the other. All the spiders do is follow links, and if you use the hard-coded URL they take that, else they just parse the relative address and understand that its in the same site and leech it anyway. Like I said, spider-bots just dont care.

Will the page load time differ in both the cases? if yes
then why?

I am yet to see a difference in page load times because of hard-coding or relative addressing. So at this point, it doesn't make a difference either way.

Any other thing?

YES! I repeat, always use relative addressing, it will save you a lot of trouble fixing broken links later. Remember this rule - hard code URLs if and only if you're linking to a third party site.
__________________
Face it, kid! Provoking a reaction isn't the same thing as saying something significant - Calvin
A64 3000+@2.4G/Asus A8V-DLX/1G DDR400/BBA X800 XT PE/320G HGST SATA2
Playing FEAR XP/LSW2
enoonmai is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2