"GamePlayer No. 1058" <NOSPAMREADER.RemoveThis@YAHOO.COM> schreef in bericht
news:kXU0f.527$Ao4.78@tornado.socal.rr.com...
> # The following lines prevent .htaccess and .htpasswd files from being
> # viewed by Web clients.
> #
> <Files ~ "^\.ht">
> Order allow,deny
> Deny from all
> </Files>
>
> I've tried making .htaccess.t files but windows says no way,
> make a cooorect folder name.
First .htacces _must_ be a file not a folder.
The issue is Windows' Explorer takes a file name starting with a dot as
nameless.
To create the file open a DOSsie command window and run 'echo 123
>c:\.htaccess' once. The very same explorer is willing to move or copy this
file anywhere... Edit this copy to suite your needs.
> Could I just change the .ht to htaccess.t then cange the <Files ~ "^\.t">
That will make Apache hide any file starting .t ...
Don't change this line untill you understand regular expressons, the
workaround given above will do fine for now.
On Linux filenames starting a dot are hidden from most file list, just like
on DOS a file with the hidden attribute set is not listed.
In general it is a good idea to stick with the default names of files and
folders to evantually ease the upload to a public site on a machine provided
by a hosting provider.
HansH
>> Stay informed about: How can this be changed for windows install?