View Single Post
  #2  
Old 10-17-2018, 05:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Absolute or relative urls question

Both relative and absolute will work as long as the document you are referring to exists at that location.

The advantage is when using relative urls. If you ever move your site to another domain or a subdirectory of the original one the relative urls will continue to work while the absolute ones will stop working - the path to the page will change.

It is always better to use relative urls.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote