AusQB
New Member
I have a PHP-based site set up with a few .php documents which are included as common code (head.php, nav.php, body_top.php. body_bottom.php) in each page.
I want to move a few pages into a sub-folder, meaning the include statements (<?php include('head.php') ?>) no longer point to the right location. Even when appending "../" to the front of the file path, it doesn't load properly since all the paths in the style sheets for instance are relative to the root folder.
Can I specify an absolute path which is relative to the root folder (if that makes sense)? In other words, I want all references to the style sheet to be href="root/css/style.css", so that all files point to the same place regardless of their location in the file structure.
Is there a way in Expression Web to automatically adjust the file path like it does for anchor tags when moving files?
I want to move a few pages into a sub-folder, meaning the include statements (<?php include('head.php') ?>) no longer point to the right location. Even when appending "../" to the front of the file path, it doesn't load properly since all the paths in the style sheets for instance are relative to the root folder.
Can I specify an absolute path which is relative to the root folder (if that makes sense)? In other words, I want all references to the style sheet to be href="root/css/style.css", so that all files point to the same place regardless of their location in the file structure.
Is there a way in Expression Web to automatically adjust the file path like it does for anchor tags when moving files?