Forum Moderators: phranque
C:/apache/web sites
The site is at:
C:/apache/web sites/mysite/index.php
In index.php there is a common include file (header.php) with a stylesheet link as follows:
<link rel="stylesheet" type="text/css" href="styles.css" />
So far so good. But I have a directory within "mysite":
C:/apache/web sites/mysite/advertising/index.php
Again in index.php there is the include file, but obviously the style sheet reference is pointing to the current folder.
I tried changing the path of the stylesheet link to "/styles.css" and "../styles.css" but this obviously will give the root file an invalid path.
How can I satisfy both conditions? Do I have to specify a RewriteBase or something?
That *will not* give an invalid path, because it specifies that this path starts at "root," so it's likely that you didn't completely flush (delete) your browser cache before testing...
Jim
Jim
or fix your DocumentRoot to point to the correct filepath
I can't coz I need to run multiple sites under the document root, for example: C:/apache/web sites/mysite and C:/apache/web sites/mysite2