Posted by Jerry Stuckle on 10/11/06 11:55
nigel.t@by.uk wrote:
> In article <egg41d$9g3$1@emma.aioe.org>, submit@flexiwebhost.com says...
>
>>>Thanks for the idea peter but that doesn't do it I'm afraid as I'd need
>>>the redirect everywhere on the site.
>>>
>>>This is turning into a worrying problem here. Fortunately we havn't
>>>implemented passwords with PHP sessions! That would have been a disaster.
>>>
>>
>>you only need do it once in your root folder in a .htaccess file and it will
>>work for all pages.
>>
>>
>>
>
> Not if people never go to that page peter. It would need to be in every
> folder we have a web page in. According to the PHP docs this would
> generate a massive performance and memory hit.
>
Incorrect.
Apache searches the current directory and all directories above it (up
to your document root). A .htaccess file in your root directory will
affect all pages in your site.
And it can be a slight performance hit, but unless you have a large
..htaccess file or your server is already way overloaded you shouldn't
notice any difference.
If that is still a concern to you just place it in your httpd.conf.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|