Absolute or relative urls question
Hi all,
When making static pages, and I code in links to other pages on my sites, and to images, if I specify absolute url eg //www.myurl.com/page-name/ will this still work, because from what I understand x cart uses relative urls and a base url in the code? Also any advantage of using absolute urls? Thanks! |
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. |
All times are GMT -8. The time now is 07:26 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.