Working with invisible files like .htaccess in OSX

If you've tried to edit a .htaccess file and it disappeared, it's because the "dot" on to the left of the word htaccess makes this file invisible on some systems.

One way around the problem is to change the name from .htaccess to -htaccess,do what you have to do with it and when ready FTP the file on to your server and rename it properly. The problem with this is that you can't test it in local mode. That's why after years of studies and intensive testing I found the following tip.

<1> Open your httpd.conf file.

<2> Look for the following expression : AccessFileName .htaccess

<3> Suppress the dot left of htaccess.

<4> Save the file.

<5> Restart the webserver.

<6> That's it, you can now change your settings as many times as you want without loosing your file.

<7> When happy with it, FTP it to your server and rename it properly there.

Warning: if you destroy your site, your family life or your server with this tip you agree that you are solely responsible.

:-)

Didier Laget
cyb@go-cyb.com

--
More GoLive sites I'm developping.

My book
http://golivRe.com

GoLive's French Forum :
http://go-CYB.com


GoLive's Actions and extensions in English
http://ActionExt.com