What is the difference between Absolute vs Relative URLs

Platform: ASP.NET| Category: Basic

Absolute /Fully Qualified URLs:

  • Contain all information necessary for the browser(or other client program) to locate the resource named in the URL
    • This includes protocol moniker used( i.e http://, ftp://..etc..), Server’s Domain name or IP address and the file path
    • Absolute URL looks as http://localhost/syncfusion/page1.aspx

Relative URLs:

  • Only provide information necessary to locate a resource relative to the current document(document relative) or current server or domain(root relative)
    • Document relative URL – page1.aspx
    • Root Relative URL – /syncfusion/Admin/pagelog.aspx

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.