Excellent, thanks!
Next question - I've done the include successfully, including just the line: -
Code: Select all
TraceEnable Off
All good so far. I use my TS-439-Pro as a development server to test sites before publishing them, but prefer to have identical versions of these i.e. no differing config or htaccess files. To this end, I want to define a system variable in the TS-439-PRO server which I can then test for in .htaccess files, for example in customized.conf: -
Code: Select all
SetEnv DEV_SERVER true
Code: Select all
<IfDefine DEV_SERVER>
ErrorDocument 404 http://devserver/sitename/page/error404
</IfDefine>
<IfDefine !DEV_SERVER>
ErrorDocument 404 http://www.domain.com/page/error404
</IfDefine>
EDIT: Visiting a page with the following PHP on it: -
Code: Select all
<?php
echo $_SERVER[DEV_SERVER];
?>