I am new to web development, learning everything on my own. I created a simple cf web site with 10 pages all located in the root directory. I have a directory called assets, and within that directory I have several other directories such as css, images, logos, js, php etc. This is where I am storing these files. Web site works fine.
Now I am starting to simplify things by placing all of my header and footer information in separate files (in a directory called cf_includes and using <cfinclude template="cfm_includes/header.cfm"> in all my pages. Everything still works correctly.
Now taking it a step further, I moved 5 of 10 of my pages in a new directory called pages, and this is where everything falls apart. When I navigate to pages inside and outside of the pages directory the links break, either I get a cf error include file cannot be found or some of my graphics, logos, cannot be found because the link pointers are the same in the header include for both inside and outside the pages directory. Does anyone know how to remedy this?