Virtual Hosting Path problems
Posted: Thu 11. Mar 2004, 11:00
I have a mass of different domains set up on my webserver - mainly using mod_rewrite. Phpwcms was having issues because it was inserting apache's document root into some of the pathnames.
I found that by taking out the 'DOCUMENT_ROOT' directive, it would just stick to what I specified within the config file.
Hows that?
[/code]
I found that by taking out the 'DOCUMENT_ROOT' directive, it would just stick to what I specified within the config file.
Code: Select all
define ("PHPWCMS_ROOT", preg_replace('/\/$/', '', $_SERVER['DOCUMENT_ROOT']).(($phpwcms["root"]) ? "/".$phpwcms["root"] : "") );
Code: Select all
define ("PHPWCMS_ROOT", (($phpwcms["root"]) ? "/".$phpwcms["root"] : "") ); // DOCUMENT_ROOT + phpwcms directory
