Re: .htaccess and mod rewrite.
| From: | John Nichel | Date: | Thu, 31 Oct 2002 07:37:24 +0000 |
| Subject: | Re: .htaccess and mod rewrite. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122207@lists.php.net to get a copy of this message | ||
.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? Cheers Brendon