Re: [PHP] General .htaccess question
On Sun, Sep 28, 2003 at 08:53:13PM -0400, Mike Brum wrote: : : I think I know the answer to this, but want some confirmation from someone a : bit more knowledgable about Apache and .htaccess files. Okay. : My webhost has the default 404 page set to 404.html. For the sake of : consistancy on a number of levels, I prefer a PHP file for this (404.php). : So to do this, I created a basic .htaccess file for this very purpose and it : sits in the root dir. Sure. : Now, does this .htaccess file get read for EVERY resource request on my site : - even when the page is found? Yes. : Aside from a META redirect from 404.html to 404.php, is there a less : server-intensive way to set my 404 in Apache when I don't have root access? No. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General .htaccess question
This should not bother you. If you get enough load then .htaccess file is cached in the memory. If your load is moderate then it does not make much difference. And since your webhost enabled this feature they should know what they are doing. Mike Brum wrote: I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? Thanks -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] General .htaccess question
I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? Thanks -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General .htaccess question
This is the perfect candidate for a question on an apache list, don't you think? Justin On Monday, September 29, 2003, at 10:53 AM, Mike Brum wrote: I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? Thanks -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General .htaccess question
*nods at Justin* Utterly nothing to do with php.general at all. -- Jon Kriek http://phpfreaks.com Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is the perfect candidate for a question on an apache list, don't you think? Justin On Monday, September 29, 2003, at 10:53 AM, Mike Brum wrote: I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? Thanks -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General .htaccess question
In your 404.php script, add a line like error_log( '404.php invoked' ), then check your log. Cheers, Rob. On Sun, 2003-09-28 at 20:53, Mike Brum wrote: I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? Thanks -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General .htaccess question
On Sun, 2003-09-28 at 21:09, Robert Cummings wrote: In your 404.php script, add a line like error_log( '404.php invoked' ), then check your log. Must be getting sleepy, I read the question below as does 404.php get read on every request. Whoops. Cheers, Rob. On Sun, 2003-09-28 at 20:53, Mike Brum wrote: I think I know the answer to this, but want some confirmation from someone a bit more knowledgable about Apache and .htaccess files. My webhost has the default 404 page set to 404.html. For the sake of consistancy on a number of levels, I prefer a PHP file for this (404.php). So to do this, I created a basic .htaccess file for this very purpose and it sits in the root dir. Now, does this .htaccess file get read for EVERY resource request on my site - even when the page is found? Aside from a META redirect from 404.html to 404.php, is there a less server-intensive way to set my 404 in Apache when I don't have root access? -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php