Probably, this is a lame question, but anyway...
My php projects are all stored in the sub-folderts in the Apache DocumentRoot folder. If I would like to include, for example, a style sheet in one of my projects, I have to add /project01/ appendix in from of every path inside the document, because they are all relative to Apache DocumentRoot. But I want this document to think that it is located inside Apache Document Root, and not in the /project01/ subfolder of the Apache DocumentRoot, like it is in reality.
So, my question is: Can one re-define DocumentRoot setting for a particular sub-directory?
I know we can use VirtualServers, but I want to be able to access projects via browser as usual, e.g. http://localhost/project01/
I also know that I can keep some variables like $DOC_ROOT in front of every path, but this is also doesn't suits me.
Could someone please advise?
My php projects are all stored in the sub-folderts in the Apache DocumentRoot folder. If I would like to include, for example, a style sheet in one of my projects, I have to add /project01/ appendix in from of every path inside the document, because they are all relative to Apache DocumentRoot. But I want this document to think that it is located inside Apache Document Root, and not in the /project01/ subfolder of the Apache DocumentRoot, like it is in reality.
So, my question is: Can one re-define DocumentRoot setting for a particular sub-directory?
I know we can use VirtualServers, but I want to be able to access projects via browser as usual, e.g. http://localhost/project01/
I also know that I can keep some variables like $DOC_ROOT in front of every path, but this is also doesn't suits me.
Could someone please advise?
