.htaccess only works for the document root directory and below. You could try making a symbolic link to the directory in the document root (I don't know if this will work).

Brendon G wrote:
I was looking over a tutorial on Php builder on making search engine
friendly sites.   While i got the concept of the tutorial and have it
working here.  I was wondering is it possible to get a php script to run out
of the home directory of apache.

tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1

in the tut they redirect any calls to files in /local/ to a php file in the
root of the site.

I'd like to if possible redirect it to script that's stored outside of the
home folder for apache.

Why you ask?
1.   One file to update for any number of websites.
2.   So clients don't go touching it. (i know permissions could solve this.
but the reason one is more important.)

In my .htaccess in the root of the site i have

Options +FollowSymLinks
RewriteEngine On
RewriteRule local.*$ local.php

Works fine..

but when i change it to a directory outside of the root it never gets to
process or give an error.

Any ideas?  is it possible?



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to