ABSOLUTE VS RELATIVE PATH
I often get confused with these 2 terms but I knew that there’s a difference between them.
“Absolute path eg. http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm
Relative path eg. http://webdesign.about.com/library/beginning/bl_begin.htm If I were to link to this URL from another page on my site, I could link to it in this way: <a href="/library/beginning/bl_begin.htm">...</a> “ (Source: clickhere)
The advantages of Relative path over the absolute is that we do not need to quote the whole domain URL when we do the linking. This makes web maintenance job a lot easier especially when we are thinking of migrating the domain.
MASKING YOUR ABSOLUTE PATH
To protect your site being directly hacked, you can actually mask/hide the absolute path. This site explains it all.
No comments:
Post a Comment