htaccess puzzle - changing a document base?
Posted: Mon Dec 10, 2007 5:51 am
I need to run a site on several different severs all of which are configured differently (my dev server, another persons dev server, a demo laptop, and a live site). The code is fine, but the htaccess file that handles redirection isn't.
On my server it'll contain things like:
But on the demo laptop that needs to be:
Is there a way to make these the same, and add a single directive to tell Apache how to handle them properly? Something like..
That didn't work unfortunately.
On my server it'll contain things like:
Code: Select all
ErrorDocument 404 /devserve1/sitetitle/version1/error.php?error=404Code: Select all
ErrorDocument 404 /laptop/demos/sitetitle/version1/error.php?error=404Code: Select all
SetEnv SITE_PATH "/laptop/demos"
ErrorDocument 404 %{SITE_PATH}/sitetitle/version1/error.php?error=404