View Full Version : General structure of relative url path?
Revolution Yes
Wed 29th Apr '09, 7:17pm
Hello,
What is the correct path to use for relative urls? After a recent domain change I've noticed that my post icons and other links use the full domain, causing some links to appear broken - what is the genral structure of relative urls?
Thanks in advance
Wayne Luke
Thu 30th Apr '09, 9:07am
Well for file names you would use just the file name like:
<a href="usercp.php">
For things in subdirectories like post icons you would use the directory than the file name:
<a href="images/icons/icon1.gif"
If you are using a third-party addon such as vBAdvanced and have it installed in a different directory than your forum files than you probably have to use absolute URLs to have the images show up. This is especially true in CSS when stored as files. CSS files loads the images relative to the CSS file, not the file that includes the CSS.
For more information please see:
http://www.webdevelopersnotes.com/design/relative_and_absolute_urls.php3
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.