Posted by Michael Fesser on 11/01/07 19:38
..oO(Mike)
>not sure i'm following what you are asking correctly but, if you move:
>
>> MYSITE.com/one.php
>> MYSITE.com/two.php
>
>to a folder outside of the document root, example
>
>> MYSITE.com/secure/one.php
>> MYSITE.com/secure/two.php
>
>you can then use htaccess to secure this directory and subsequently the 2
>files. Alternatively instead of using htaccess you can use PHP to secure
>the 2 pages.
"Outside of the document root" usually means _really_ outside and not
just one level deeper in a sub directory:
/MYSITE.com/ (doc root)
/secure/one.php
/secure/two.php
Then you don't need a .htaccess anymore, since /secure can't be accessed
by any URL at all.
Micha
[Back to original message]
|