PDA

View Full Version : What is the difference between an absolute and a relative URL?



abarnasree
02-29-2012, 06:49 AM
hello friends,

pls tell me,

What is the difference between an absolute and a relative URL?

bposervices
02-29-2012, 12:24 PM
Absolute URL contains all information necessary for the browser to locate the resource named in the URL. This information includes protocol, domain name (or IP address) and the file path.

Relative URL provides only the necessary information in order to locate a resource relative to the current document or current server or a domain (root folder).

codyjon
02-29-2012, 09:42 PM
An absolute URL contains more information than a relative URL does. Relative URLs are more convenient because they are shorter and often more portable.

shakir
02-29-2012, 10:05 PM
An absolute URL contains all the information necessary to locate a resource ie the url that shows the complete address
A relative URL locates a resource using an absolute URL as a starting point ie only shows a partial address

inflexi
03-01-2012, 12:24 AM
An url that is ABSOLUTE shows the complete address and A url that is RELATIVE only shows a partial address