| Article: |
Apache Web-Serving with Mac OS X, Part 4 | |
| Subject: | Can't create .htaccess file | |
| Date: | 2002-02-04 02:31:42 | |
| From: | markpalmer1 | |
|
Hi,
|
||
Showing messages 1 through 3 of 3.
-
Can't create .htaccess file
2002-02-04 06:48:14 Morbus Iff |
[View]
-
Can't create .htaccess file
2002-02-04 08:09:32 markpalmer1 [View]
>> You can't "cp htaccess .htaccess"? What sort of error message do you get?
I dont get any error, just a return to the prompt ls -l only list a file called htaccess!
I then tried resaving as .htaccess using pico which works fine, although I did confuse myself for a while by doing ls -l without autheticating as su and of course I couldn't see anything, this I guess was my original problem.
Thanks
Mark.
-
Can't create .htaccess file
2002-02-04 10:57:53 Morbus Iff |
[View]
Ah yes, forgot to mention the most obvious. To see "dot files" in the Terminal, you need to do "ls -al", NOT "ls -l". The "-a" says "show all files, including dot files".



Have you tried creating and editing the .htaccess file within your Terminal only (like "pico .htaccess", editing within Pico, and then saving)?