Welcome Guest, Not a member yet? Register   Sign In
Losing Styles and Images relative to document path
#1

[eluser]Unknown[/eluser]
How can I combat losing stylesheets / images / etc when changing from the root page (index.php) to a sub page (index.php/view/products)?

I am using a master header for both the root page and sub pages (my headers, css links, etc., are all in this file), but all of my sub pages are no longer relative to the site root (/) and cannot find these files.

If I change "assets/styles.css" to "/assets/styles.css" it doesn't make any difference, which is VERY strange because "../../assets/styles.css" works fine. Why is CI not only changing the CWD but also stopping me from using absolute file paths?


Messages In This Thread
Losing Styles and Images relative to document path - by El Forum - 06-14-2008, 10:53 PM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 01:12 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:45 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:50 AM
Losing Styles and Images relative to document path - by El Forum - 08-22-2008, 07:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB