Use Root Relative paths

Chris Hirst's Avatar
Written by Chris Hirst. Posted in Web Development and Site Management on 07 February 2012.
Hot 2237 hits 0 favoured

Use root relative paths by starting the path with a forward slash '/'. This way the path will be the same from anywhere in the site structure.

so with a site folder structure of


Files in the the images folder would be referenced from anywhere  as


Chris Hirst's Avatar

Author: Chris Hirst

36 0 0
Powered by CjBlog