StupidScript - 12:10 am on Jul 21, 2010 (gmt 0)
Thank you for that, g1smd.
I still don't quite have it ironed out, though:
/var/www/html = DocumentRoot
/var/www/html/index.php = index
/var/www/html/style.css = stylesheet
"index.php" links to "style.css"
Without the rewrite, this works fine.
With the rewrite, additional path info required, so:
"index.php" links to "/style.css"
Note this is certainly not a filesystem path, but a "web" path, relative to DocumentRoot.
How does that fit with your response, "inside the server"?
Where is the browser's frame of reference that it can't find a file in the same directory as the requesting file? As far as the browser goes, isn't it still receiving index.php? And so doesn't the "web" relative path still apply?
Thanks, again. I do see how it's a browser issue, despite my questions. Here's where I get confused with your post:
(1) take the current page's URL, (2) strip off the page part of that URL, back to the final slash in the URL and then (3) append the relative reference on the end.
Or are you saying
(2) http://www.example.com with no trailing slash,
which is where the relative 'style.css' got lost (http://www.example.comstyle.css)?\