In a php script making /coderoot refer to /var/webroot/coderoot?
- by Josh
We are migrating a server and have modified the architecture slightly so that instead of /var/coderoot we now have /var/webroot/coderoot - I realize I could do a scripted find and replace, but I would rather have full unmodified reverse compatibility, or if that's unreasonable lets just say for theories sake. I tried using a symmlink
ln -s /var/coderoot /var/webroot/coderoot
but attempting to include a file in the code root using /var/coderoot/file does not work.
I also tried using mod_alias with ScriptAlias and Alias. Neither worked. Is there anyway to do this?