Problems with .htaccess and AFP over Netatalk

After yesterdays triumph of establishing contact with my virtual server over AFP, using Netatalk, I was perplexed today to find that my .htaccess files weren’t having any effect. Listing the files on the shared volume on my Mac seemed to show that they were there:

~$ ls -Al /Volumes/Home Directory/www/sites/jackspeak/site/
total 736
-rwxr-xr-x   1 simon  simon    401  6 Apr 18:08 .htaccess
drwxr-xr-x@ 10 simon  simon    296  5 Apr 11:30 .svn
-rwxr-xr-x@  1 simon  simon   2941  5 Apr 11:30 500.html

But running the same command on the Linux virtual server showed very different results:

~$ ls -Al /www/sites/jackspeak/site/
total 736
-rwxr-xr-x   1 simon  simon    401  6 Apr 18:08 :2ehtaccess
drwxr-xr-x@ 10 simon  simon    296  5 Apr 11:30 :2esvn
-rwxr-xr-x@  1 simon  simon   2941  5 Apr 11:30 500.html

Apache wasn’t seeing any .htaccess files because there wasn’t any there… something had translated the “.” into “:2e”. What was this strange set of characters “:2e” which was screwing with my files? Continue reading Problems with .htaccess and AFP over Netatalk