Brief background. In my current htaccess I prepend and append a file that is not in the websites root dir. I am looking to enable PHP open_basedir Tweak on the server and of course when doing so this throws an error because it does not have access to these file locations any longer.
My first question is if I were to use an alias something to the likes of
Alias /code/ /home/code/
could I then change this :
php_value auto_prepend_file "/home/code/start.php"
php_value auto_append_file "/home/code/end.php"
to
php_value auto_prepend_file "/home/mysite/code/start.php"
php_value auto_append_file "/home/mysite/code/end.php"
for it to work? If the alias adds that folder to the local sites tree then it would no longer be out of its base, correct?
Second question is I do not use mod_alias, but do have mod_rewrite... is it possible to do something like that in mod_rewrite... map that location and add it to the tree?