| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Absolute or relative urls question | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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!
__________________
version 4.1.7 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|