Posted by Mike on 11/01/07 19:29
"artev" <mailnotspammm@notspamm.nn> wrote in message
news:13818mrljkubs$.put5er9zb99b.dlg@40tude.net...
> example that I want to do:
> if I have this 3 files
> MYSITE.com/index.php
> MYSITE.com/one.php
> MYSITE.com/two.php
>
> I want that file two.php and file three.php aren't never accesible by url;
> I think that is necessary some row in htaccess; not sure if is this
> solution; or is necessary change file's CHMD ?
>
> ------------------------------------------------------------------------------------------------
> other similar
> MYSITE.com/index.php
> MYSITE.com/A/B/one.php
> MYSITE.com/A/C/X/other.php
>
> is possible write in htaccess a code that if one write
> MYSITE.com/A/B/one.php or MYSITE.com/A/C/X/other.php
> is redirect always at index or see an error in the page?
>
> -------------------------------------------------------------------------
> other:
> for a directory which is the code for protect all the file excluse the
> index files ?
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.
HTH
-------------------------------------
DSB
http://www.documentscanningbureau.com
[Back to original message]
|