Modifying DOCUMENT_ROOT in .htaccess file
Posted: Fri May 30, 2003 2:34 pm
I have many projects at my Apache server root
For example :
/dev
->/classes
->/styles
->index.php
->...
/Agenda
->/classes
->/styles
->index.php
->...
...
I'd like to know if it is possible to modify DOCUMENT_ROOT so I could use it without adding my current project path
ie:when I'm in project /dev so I could easily bring it back & forth from my development server to my deployment server
I Thought I could probably do it with .htaccess file but I'm not sure how !
Could anybody help
For example :
/dev
->/classes
->/styles
->index.php
->...
/Agenda
->/classes
->/styles
->index.php
->...
...
I'd like to know if it is possible to modify DOCUMENT_ROOT so I could use it without adding my current project path
ie:
Code: Select all
include(DOCUMENT_ROOT."/classes/file.php")I Thought I could probably do it with .htaccess file but I'm not sure how !
Could anybody help