Re: .htaccess

From: Date: Fri, 18 May 2001 06:17:38 +0000
Subject: Re: .htaccess
Groups: php.windows 
Request: Send a blank email to php-windows+get-7709@lists.php.net to get a copy of this message
With apache, in the httpd.conf file, you can change the .htaccess file to whatever file you want it to access (and protect) ...1st change: AccessFileName .htaccess to AccessFileName whateverfilename.filetype This changes the file apache looks for in each directory for its settings Then right below that there should be: <Files .htaccess> Order allow,deny Deny from all </Files> Change .htaccess to whateverfilename.type (as you entered it in the above statement) This prevents users visiting your website from being able to view that file now you dont need to worry about windows not opening a .htaccess file, you just name your own, eg access.apache, or website.access or whatever you like. Hope this helps ~Jeff >>Cut from previous E-mail<< Rename any test text file to "tester.htaccess", open, choose open with, check always open with, notepad.exe, and Description of type may be httpd DIR OverRide Settings ... This will associate .htaccess with notepad and make life easier. ""Matt Hivner"" <voodoo77@bellsouth.net> wrote in message news:9dr8f0$vd8$1@toye.p.sourceforge.net... | according to the manual (on the web)... | | "To configure Apache (with the PHP module installed) to PHP-process all the | HTML files in a given directory, add the following line to the file | ".htaccess" inside the directory: | | AddType application/x-httpd-php .html .htm | | It's OK if ".htaccess" contains only this line (i.e. the file did not | previously exist.)" | | I tried to add this file to my htdocs directory (assuming that that was the | given directory to writer was referring to) and windows will not let me name | a file .htaccess. | | I probably missed this in a read me somewhere, but could someone explain to | me a work around, or is there something else a windows user must do in this | situation. | | I know that in *NIX naming a file with a dot in front will simply hide it | from the ls command, but I am lost here in windows land... |

« previous php.windows (#7709) next »